From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTCl1-0007fM-4e for qemu-devel@nongnu.org; Fri, 19 Apr 2013 10:57:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTCks-0007W1-48 for qemu-devel@nongnu.org; Fri, 19 Apr 2013 10:57:46 -0400 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:56618 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTCkr-0007TS-SB for qemu-devel@nongnu.org; Fri, 19 Apr 2013 10:57:37 -0400 From: Peter Maydell Date: Fri, 19 Apr 2013 15:57:22 +0100 Message-Id: <1366383447-13082-7-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1366383447-13082-1-git-send-email-peter.maydell@linaro.org> References: <1366383447-13082-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 06/11] versatile_pci: Put the host bridge PCI device at slot 29 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Paul Brook On real hardware the host bridge appears as a PCI device in slot 29, so make QEMU put its host bridge in that slot too. Signed-off-by: Peter Maydell Acked-by: Paul Brook --- hw/pci-host/versatile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c index ce5bdf2..8f8612c 100644 --- a/hw/pci-host/versatile.c +++ b/hw/pci-host/versatile.c @@ -87,6 +87,8 @@ static void pci_vpb_init(Object *obj) object_initialize(&s->pci_dev, TYPE_VERSATILE_PCI_HOST); qdev_set_parent_bus(DEVICE(&s->pci_dev), BUS(&s->pci_bus)); + object_property_set_int(OBJECT(&s->pci_dev), PCI_DEVFN(29, 0), "addr", + NULL); } static void pci_vpb_realize(DeviceState *dev, Error **errp) -- 1.7.9.5