From patchwork Tue Sep 7 11:53:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 63994 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5BEDDB6F01 for ; Tue, 7 Sep 2010 22:05:30 +1000 (EST) Received: from localhost ([127.0.0.1]:34883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OswvW-0003Pd-P8 for incoming@patchwork.ozlabs.org; Tue, 07 Sep 2010 08:05:26 -0400 Received: from [140.186.70.92] (port=38923 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oswr7-0001GK-U5 for qemu-devel@nongnu.org; Tue, 07 Sep 2010 08:00:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oswjq-0005RJ-Ea for qemu-devel@nongnu.org; Tue, 07 Sep 2010 07:53:24 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57191 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oswjq-0005QH-8x for qemu-devel@nongnu.org; Tue, 07 Sep 2010 07:53:22 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 79C3E8AC33; Tue, 7 Sep 2010 13:53:19 +0200 (CEST) From: Alexander Graf To: QEMU Developers Date: Tue, 7 Sep 2010 13:53:17 +0200 Message-Id: <1283860398-11637-4-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1283860398-11637-1-git-send-email-agraf@suse.de> References: <1283860398-11637-1-git-send-email-agraf@suse.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: Subject: [Qemu-devel] [PATCH 3/4] PPC: Make e500 pci byte swap config data X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);