Re: Memory region endianness

2023-07-04 Thread Peter Xu
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? > >

Memory region endianness

2023-06-29 Thread BALATON Zoltan
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

[Qemu-devel] [PATCH 27/28] memory: check memory region endianness, not target's

2013-07-22 Thread Paolo Bonzini
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/