Received: from [140.186.70.92] (port=49542 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrJ1O-0006pl-BS for qemu-devel@nongnu.org; Thu, 02 Sep 2010 19:16:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrJ1N-0008El-00 for qemu-devel@nongnu.org; Thu, 02 Sep 2010 19:16:41 -0400 Received: from cantor.suse.de ([195.135.220.2]:37911 helo=mx1.suse.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrJ1M-0008EC-QP for qemu-devel@nongnu.org; Thu, 02 Sep 2010 19:16:40 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id C3BC39417A for ; Fri, 3 Sep 2010 01:16:38 +0200 (CEST) From: Alexander Graf Date: Fri, 3 Sep 2010 01:16:38 +0200 Message-Id: <1283469398-19965-5-git-send-email-agraf@suse.de> In-Reply-To: <1283469398-19965-1-git-send-email-agraf@suse.de> References: <1283469398-19965-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 4/4] PPC: Make e500 pci byte swap config data List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel List The config data field on the e500 pci controller is in little endian, so we need to enable byte swap there. Signed-off-by: Alexander Graf --- hw/ppce500_pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c index 3fa42d2..629b242 100644 --- a/hw/ppce500_pci.c +++ b/hw/ppce500_pci.c @@ -313,7 +313,7 @@ static int e500_pcihost_initfn(SysBusDevice *dev) cpu_register_physical_memory(registers + PCIE500_CFGADDR, 4, index); /* CFGDATA */ - index = pci_host_data_register_mmio(&s->pci_state, 0); + index = pci_host_data_register_mmio(&s->pci_state, 1); if (index < 0) return -1; cpu_register_physical_memory(registers + PCIE500_CFGDATA, 4, index); -- 1.6.0.2