diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-04-19 11:15:19 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-04-19 11:15:19 +0100 |
commit | 5f37ef92b7690423ac6311d3c597e182fc5f8fe6 (patch) | |
tree | 37a012edf3b730c67e5196d980fba19fea823b9e | |
parent | 967c2607496087abf84904c82e6de0cd320a3831 (diff) | |
download | qemu-5f37ef92b7690423ac6311d3c597e182fc5f8fe6.zip qemu-5f37ef92b7690423ac6311d3c597e182fc5f8fe6.tar.gz qemu-5f37ef92b7690423ac6311d3c597e182fc5f8fe6.tar.bz2 |
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 <peter.maydell@linaro.org>
Acked-by: Paul Brook <paul@codesourcery.com>
-rw-r--r-- | hw/pci-host/versatile.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |