qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 06/11] sun4u: give ISA bus to ISA methods


From: Hervé Poussineau
Subject: [Qemu-devel] [PATCH 06/11] sun4u: give ISA bus to ISA methods
Date: Mon, 24 Oct 2011 22:18:20 +0200

Signed-off-by: Hervé Poussineau <address@hidden>
---
 hw/sun4u.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/hw/sun4u.c b/hw/sun4u.c
index 1e45192..c67576a 100644
--- a/hw/sun4u.c
+++ b/hw/sun4u.c
@@ -530,10 +530,12 @@ static ISABus *
 pci_ebus_init(PCIBus *bus, int devfn)
 {
     qemu_irq *isa_irq;
+    PCIDevice *pci_dev;
     ISABus *isa_bus;
 
-    pci_create_simple(bus, devfn, "ebus");
-    isa_bus = NULL;
+    pci_dev = pci_create_simple(bus, devfn, "ebus");
+    isa_bus = DO_UPCAST(ISABus, qbus,
+                        qdev_get_child_bus(&pci_dev->qdev, "isa.0"));
     isa_irq = qemu_allocate_irqs(dummy_isa_irq_handler, NULL, 16);
     isa_bus_irqs(isa_bus, isa_irq);
     return isa_bus;
-- 
1.7.6.3



reply via email to

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