qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 06/11] versatile_pci: Put the host bridge PCI device


From: Peter Maydell
Subject: [Qemu-devel] [PATCH 06/11] versatile_pci: Put the host bridge PCI device at slot 29
Date: Fri, 19 Apr 2013 15:57:22 +0100

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 <address@hidden>
Acked-by: Paul Brook <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]