OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71baa30
)
sun4u: give ISA bus to ISA methods
author
Hervé Poussineau
<hpoussin@reactos.org>
Thu, 15 Dec 2011 21:09:56 +0000
(22:09 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Tue, 20 Dec 2011 21:44:30 +0000
(15:44 -0600)
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/sun4u.c
patch
|
blob
|
history
diff --git
a/hw/sun4u.c
b/hw/sun4u.c
index
dfb81da
..
e3e8dde
100644
(file)
--- 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;