summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2011-12-15 22:09:56 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-20 15:44:30 -0600
commitab953e284ad2e701bdbad1685d07c1a930ba8d48 (patch)
tree992db64af1b15d02d2dd1a9337cf9637f1b8e8d1 /hw
parent71baa3036fa175f2a5fb08a1a64c541cddb47be4 (diff)
sun4u: give ISA bus to ISA methods
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/sun4u.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/sun4u.c b/hw/sun4u.c
index dfb81da562..e3e8ddebca 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;