From patchwork Wed Mar 19 23:36:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 331925 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 617922C009A for ; Thu, 20 Mar 2014 10:51:23 +1100 (EST) Received: from localhost ([::1]:44325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQQ5W-0003mk-9A for incoming@patchwork.ozlabs.org; Wed, 19 Mar 2014 19:39:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQQ2x-0000Ky-Q2 for qemu-devel@nongnu.org; Wed, 19 Mar 2014 19:37:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQQ2r-0005y4-Qx for qemu-devel@nongnu.org; Wed, 19 Mar 2014 19:37:19 -0400 Received: from mout.web.de ([212.227.15.14]:61040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQQ2f-0005v0-I8; Wed, 19 Mar 2014 19:37:01 -0400 Received: from envy.de ([84.148.52.217]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0MK2JZ-1WRnTY0u8r-001NUm; Thu, 20 Mar 2014 00:36:17 +0100 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Thu, 20 Mar 2014 00:36:05 +0100 Message-Id: <1395272166-687-7-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1395272166-687-1-git-send-email-andreas.faerber@web.de> References: <1395272166-687-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 X-Provags-ID: V03:K0:uQg9ZVJYnz4XkryU56nULuSRQwwyToqZoKg7bYjIxxATAOOSzk8 p0I6CgH9W0oayhp5tlrLMpL3yGlK5OyNc2Oe087BauOtseIQKjUXmYxAdcDWa8irKh8vQAg ROyrKs8ME4opJl0WgSJp73qb4HpIyawO/sCv/TfqAbF1t0Nez9zAtxS4wvm8ea2O8M/QbM7 bzREcswvPva0KdsKB29cw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.14 Cc: =?UTF-8?q?Herv=C3=A9=20Poussineau?= , =?UTF-8?q?Andreas=20F=C3=A4rber?= , qemu-ppc@nongnu.org Subject: [Qemu-devel] [PULL for-2.0 6/7] raven: Fix PCI bus accesses with size > 1 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 From: Hervé Poussineau Signed-off-by: Hervé Poussineau Reviewed-by: Artyom Tarasenko Signed-off-by: Andreas Färber --- hw/pci-host/prep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index 8109625..e452a91 100644 --- a/hw/pci-host/prep.c +++ b/hw/pci-host/prep.c @@ -225,12 +225,12 @@ static void raven_pcihost_realizefn(DeviceState *d, Error **errp) pci_bus_irqs(&s->pci_bus, prep_set_irq, prep_map_irq, s->irq, PCI_NUM_PINS); - memory_region_init_io(&h->conf_mem, OBJECT(h), &pci_host_conf_be_ops, s, - "pci-conf-idx", 1); + memory_region_init_io(&h->conf_mem, OBJECT(h), &pci_host_conf_le_ops, s, + "pci-conf-idx", 4); memory_region_add_subregion(&s->pci_io, 0xcf8, &h->conf_mem); - memory_region_init_io(&h->data_mem, OBJECT(h), &pci_host_data_be_ops, s, - "pci-conf-data", 1); + memory_region_init_io(&h->data_mem, OBJECT(h), &pci_host_data_le_ops, s, + "pci-conf-data", 4); memory_region_add_subregion(&s->pci_io, 0xcfc, &h->data_mem); memory_region_init_io(&h->mmcfg, OBJECT(s), &PPC_PCIIO_ops, s, "pciio", 0x00400000);