From: Peter Maydell Date: Fri, 19 Apr 2013 10:15:19 +0000 (+0100) Subject: versatile_pci: Put the host bridge PCI device at slot 29 X-Git-Tag: v1.5.0-rc0~204^2~5 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f37ef92b7690423ac6311d3c597e182fc5f8fe6;p=thirdparty%2Fqemu.git versatile_pci: Put the host bridge PCI device at slot 29 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 --- diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c index ce5bdf22b10..8f8612c126b 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)