Skip to content

Commit

Permalink
versatile_pci: Put the host bridge PCI device at slot 29
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pm215 committed Apr 19, 2013
1 parent 967c260 commit 5f37ef9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/pci-host/versatile.c
Expand Up @@ -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)
Expand Down

0 comments on commit 5f37ef9

Please sign in to comment.