]> git.proxmox.com Git - qemu.git/commit - memory.c
memory: Fix memory_region_wrong_endianness()
authorAndreas Färber <afaerber@suse.de>
Sat, 7 Jan 2012 08:45:14 +0000 (09:45 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Jan 2012 11:10:09 +0000 (13:10 +0200)
commit2c3579ab07408b353fe7083bae9469e1485fc8fc
tree55c0b96681547f824708f4f31c9d36fe1ffebc94
parent6148b23d69444a300710db0c53f6c53b7f3c8067
memory: Fix memory_region_wrong_endianness()

Since commit be675c972088eba210e18dc125613e9f205a6bfb (memory: move
endianness compensation to memory core) it was checking for
TARGET_BIG_ENDIAN instead of TARGET_WORDS_BIGENDIAN, thereby not
swapping correctly for Big Endian targets.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
memory.c