i6300esb: Correct endiannness
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 23 Mar 2015 01:51:47 +0000 (12:51 +1100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Mar 2015 12:37:10 +0000 (13:37 +0100)
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>
hw/watchdog/wdt_i6300esb.c

index b2d158f7ba20a28034c72cedc6c61dadc3173461..e694fa9969557d09cd657d5f9ad5225a5026747e 100644 (file)
@@ -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 = {