diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2015-03-23 12:51:47 +1100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-03-25 13:37:10 +0100 |
commit | 06b82e2d8ead4d1f9441dbf2b03c31369a8f27bd (patch) | |
tree | eddc8ae35ba0df9c083e0ace407c12392865b3f8 /hw/watchdog | |
parent | 3a5c76baf312d83cb77c8faa72c5f7a477effed0 (diff) | |
download | qemu-06b82e2d8ead4d1f9441dbf2b03c31369a8f27bd.tar.gz qemu-06b82e2d8ead4d1f9441dbf2b03c31369a8f27bd.tar.bz2 qemu-06b82e2d8ead4d1f9441dbf2b03c31369a8f27bd.zip |
i6300esb: Correct endiannness
The IO operations for the i6300esb watchdog timer are marked as
DEVICE_NATIVE_ENDIAN. This is not correct, and - as a PCI device - should
be DEVICE_LITTLE_ENDIAN.
This allows i6300esb to work on ppc targets (yes, using an Intel ICH
derived device on ppc is a bit odd, but the driver exists on the guest
and there's no more obviously suitable watchdog device).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <1427075508-12099-2-git-send-email-david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/watchdog')
-rw-r--r-- | hw/watchdog/wdt_i6300esb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c index b2d158f7ba..e694fa9969 100644 --- a/hw/watchdog/wdt_i6300esb.c +++ b/hw/watchdog/wdt_i6300esb.c @@ -369,7 +369,7 @@ static const MemoryRegionOps i6300esb_ops = { i6300esb_mem_writel, }, }, - .endianness = DEVICE_NATIVE_ENDIAN, + .endianness = DEVICE_LITTLE_ENDIAN, }; static const VMStateDescription vmstate_i6300esb = { |