render / rpms / qemu

Forked from rpms/qemu 7 months ago
Clone

Blame 0025-ne2000-mark-I-O-as-LITTLE_ENDIAN.patch

298366
From a1991d05d37ac9054d772b32d8fac70bc31be81a Mon Sep 17 00:00:00 2001
298366
From: Aurelien Jarno <aurelien@aurel32.net>
298366
Date: Mon, 2 Sep 2013 13:10:34 +0200
298366
Subject: [PATCH] ne2000: mark I/O as LITTLE_ENDIAN
298366
298366
Now that the memory subsystem is propagating the endianness correctly,
298366
the ne2000 device should have its I/O ports marked as LITTLE_ENDIAN, as
298366
PCI devices are little endian.
298366
298366
This makes the ne2000 NIC to work again on PowerPC.
298366
298366
Cc: qemu-stable@nongnu.org
298366
Cc: Stefan Hajnoczi <stefanha@redhat.com>
298366
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
298366
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
298366
(cherry picked from commit 45d883dcf208160e2db308d1b368beb74f37dc7e)
298366
298366
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
298366
---
298366
 hw/net/ne2000.c | 2 +-
298366
 1 file changed, 1 insertion(+), 1 deletion(-)
298366
298366
diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c
298366
index 31afd28..c961258 100644
298366
--- a/hw/net/ne2000.c
298366
+++ b/hw/net/ne2000.c
298366
@@ -693,7 +693,7 @@ static void ne2000_write(void *opaque, hwaddr addr,
298366
 static const MemoryRegionOps ne2000_ops = {
298366
     .read = ne2000_read,
298366
     .write = ne2000_write,
298366
-    .endianness = DEVICE_NATIVE_ENDIAN,
298366
+    .endianness = DEVICE_LITTLE_ENDIAN,
298366
 };
298366
 
298366
 /***********************************************************/