aboutsummaryrefslogtreecommitdiff
path: root/hw/realview.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-14 22:35:08 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-14 22:35:08 +0100
commit0027b06d0ef6450a52f96827d303865d7333b196 (patch)
tree4908081e17470d26434428d749b7cc9a0b281584 /hw/realview.c
parent0e058a8a6aab56565677dc3a7f994b0c8f191a48 (diff)
downloadqemu-0027b06d0ef6450a52f96827d303865d7333b196.zip
qemu-0027b06d0ef6450a52f96827d303865d7333b196.tar.gz
qemu-0027b06d0ef6450a52f96827d303865d7333b196.tar.bz2
ARM PCI host qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/realview.c')
-rw-r--r--hw/realview.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/realview.c b/hw/realview.c
index a482487..5d7073a 100644
--- a/hw/realview.c
+++ b/hw/realview.c
@@ -32,6 +32,7 @@ static void realview_init(ram_addr_t ram_size,
CPUState *env;
ram_addr_t ram_offset;
qemu_irq *pic;
+ DeviceState *dev;
PCIBus *pci_bus;
NICInfo *nd;
int n;
@@ -100,7 +101,9 @@ static void realview_init(ram_addr_t ram_size,
sysbus_create_simple("pl031", 0x10017000, pic[10]);
- pci_bus = pci_vpb_init(pic + 48, 1);
+ dev = sysbus_create_varargs("realview_pci", 0x60000000,
+ pic[48], pic[49], pic[50], pic[51], NULL);
+ pci_bus = qdev_get_child_bus(dev, "pci");
if (usb_enabled) {
usb_ohci_init_pci(pci_bus, 3, -1);
}