On Fri, Jun 30, 2023 at 01:37:49AM +0200, BALATON Zoltan wrote:
> Hello,
>
> Some devices have bits that allow the guest to change endianness of memory
> mapped resources, e.g. ati-vga should allow switching the regs BAR into big
> endian on writing a bit. What's the best way to emulate this?
>
>
Hello,
Some devices have bits that allow the guest to change endianness of memory
mapped resources, e.g. ati-vga should allow switching the regs BAR into
big endian on writing a bit. What's the best way to emulate this?
The naive way could be to just test for the bit in the memory ops call
b
When combining multiple accesses into a single value, we need to do so
in the device's desired endianness. The target endianness does not have
any influence.
Signed-off-by: Paolo Bonzini
---
memory.c | 25 ++---
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/