qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Stefan Hajnoczi <stefanha@redhat.com>,
	Aurelien Jarno <aurelien@aurel32.net>,
	Anthony Liguori <anthony@codemonkey.ws>,
	qemu-stable@nongnu.org
Subject: [Qemu-devel] [PULL v2 5/5] ne2000: mark I/O as LITTLE_ENDIAN
Date: Fri,  6 Sep 2013 17:33:44 +0200	[thread overview]
Message-ID: <1378481624-20964-6-git-send-email-stefanha@redhat.com> (raw)
In-Reply-To: <1378481624-20964-1-git-send-email-stefanha@redhat.com>

From: Aurelien Jarno <aurelien@aurel32.net>

Now that the memory subsystem is propagating the endianness correctly,
the ne2000 device should have its I/O ports marked as LITTLE_ENDIAN, as
PCI devices are little endian.

This makes the ne2000 NIC to work again on PowerPC.

Cc: qemu-stable@nongnu.org
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 hw/net/ne2000.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c
index 31afd28..c961258 100644
--- a/hw/net/ne2000.c
+++ b/hw/net/ne2000.c
@@ -693,7 +693,7 @@ static void ne2000_write(void *opaque, hwaddr addr,
 static const MemoryRegionOps ne2000_ops = {
     .read = ne2000_read,
     .write = ne2000_write,
-    .endianness = DEVICE_NATIVE_ENDIAN,
+    .endianness = DEVICE_LITTLE_ENDIAN,
 };
 
 /***********************************************************/
-- 
1.8.3.1

      parent reply	other threads:[~2013-09-06 15:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-06 15:33 [Qemu-devel] [PULL v2 0/5] Net patches Stefan Hajnoczi
2013-09-06 15:33 ` [Qemu-devel] [PULL v2 1/5] tap: Use numbered tap/tun devices on all *BSD OS's Stefan Hajnoczi
2013-09-06 15:33 ` [Qemu-devel] [PULL v2 2/5] net: Rename send_queue to incoming_queue Stefan Hajnoczi
2013-09-06 15:33 ` [Qemu-devel] [PULL v2 3/5] e1000: add interrupt mitigation support Stefan Hajnoczi
2013-09-06 15:33 ` [Qemu-devel] [PULL v2 4/5] vmxnet3: Eliminate __packed redefined warning Stefan Hajnoczi
2013-09-06 15:33 ` Stefan Hajnoczi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1378481624-20964-6-git-send-email-stefanha@redhat.com \
    --to=stefanha@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).