From patchwork Mon Sep 2 11:10:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 271881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1EA282C009C for ; Mon, 2 Sep 2013 21:11:25 +1000 (EST) Received: from localhost ([::1]:38694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGS2T-0008OM-M6 for incoming@patchwork.ozlabs.org; Mon, 02 Sep 2013 07:11:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGS24-0008O7-Qy for qemu-devel@nongnu.org; Mon, 02 Sep 2013 07:11:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGS1y-0008QQ-Lg for qemu-devel@nongnu.org; Mon, 02 Sep 2013 07:10:56 -0400 Received: from hall.aurel32.net ([2001:470:1f0b:4a8::1]:58235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGS1y-0008Pi-ER for qemu-devel@nongnu.org; Mon, 02 Sep 2013 07:10:50 -0400 Received: from anguille.univ-lyon1.fr ([134.214.4.207] helo=ohm.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1VGS1o-0000NW-V3; Mon, 02 Sep 2013 13:10:41 +0200 Received: from aurel32 by ohm.aurel32.net with local (Exim 4.80) (envelope-from ) id 1VGS1j-0006Xh-Bs; Mon, 02 Sep 2013 13:10:35 +0200 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Mon, 2 Sep 2013 13:10:34 +0200 Message-Id: <1378120234-14062-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:470:1f0b:4a8::1 Cc: Stefan Hajnoczi , qemu-stable@nongnu.org, Aurelien Jarno Subject: [Qemu-devel] [PATCH] ne2000: mark I/O as LITTLE_ENDIAN X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 Signed-off-by: Aurelien Jarno --- 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, }; /***********************************************************/