aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2014-05-27 01:59:06 +0200
committerAlexander Graf <agraf@suse.de>2014-06-16 13:24:38 +0200
commit9397a7c8318d727cea2ac62dbb14493a0e3e5f4b (patch)
tree2a35d255a18ee9f3ad7ac2a534cc66cb7306509e /hw
parent3e300fa6ad4ee19b16339c25773dec8df0bfb982 (diff)
downloadqemu-9397a7c8318d727cea2ac62dbb14493a0e3e5f4b.zip
qemu-9397a7c8318d727cea2ac62dbb14493a0e3e5f4b.tar.gz
qemu-9397a7c8318d727cea2ac62dbb14493a0e3e5f4b.tar.bz2
macio: Fix timer endianness
The timer registers on our KeyLargo macio emulation are read as byte reversed from the big endian guest, so we better expose them endian reversed as well. This fixes initial hickups of booting Mac OS X with -M mac99 for me. Signed-off-by: Alexander Graf <agraf@suse.de> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw')
-rw-r--r--hw/misc/macio/macio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c
index 7f99aa0..47f45f5 100644
--- a/hw/misc/macio/macio.c
+++ b/hw/misc/macio/macio.c
@@ -259,7 +259,7 @@ static uint64_t timer_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps timer_ops = {
.read = timer_read,
.write = timer_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = DEVICE_LITTLE_ENDIAN,
};
static int macio_newworld_initfn(PCIDevice *d)