>If you mean the MemoryRegionOps read and write functions,
Yes, I mean that. I understand that "MemoryRegionOps read and write functions, those work only with byte offsets."
But, I must set a value into a qom register using C bit fields in the guest source code.
If I use the extract32/deposit32 function, how do you know which bit is selected?
I mean that, if I write "register.B1 = 1" in the guest source code, I want to set 1 into the second bit in the qom source code using the deposit32 function, but how do you know start, length, and fieldval which are the argument of the deposit function?