aboutsummaryrefslogtreecommitdiff
path: root/hw/piix4.c
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2011-12-15 22:09:58 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-20 15:44:30 -0600
commit142e9787485d5c58341534b78366ae7ea8e74969 (patch)
tree738c61dfff98a7493c4ef1fcc22e6229bf27c588 /hw/piix4.c
parentc9940edb473cbaeac565b3a420fdfcc0b6c31e5d (diff)
downloadqemu-142e9787485d5c58341534b78366ae7ea8e74969.zip
qemu-142e9787485d5c58341534b78366ae7ea8e74969.tar.gz
qemu-142e9787485d5c58341534b78366ae7ea8e74969.tar.bz2
malta: 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/piix4.c')
-rw-r--r--hw/piix4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/piix4.c b/hw/piix4.c
index 2fd1171..51af459 100644
--- a/hw/piix4.c
+++ b/hw/piix4.c
@@ -93,11 +93,12 @@ static int piix4_initfn(PCIDevice *dev)
return 0;
}
-int piix4_init(PCIBus *bus, int devfn)
+int piix4_init(PCIBus *bus, ISABus **isa_bus, int devfn)
{
PCIDevice *d;
d = pci_create_simple_multifunction(bus, devfn, true, "PIIX4");
+ *isa_bus = DO_UPCAST(ISABus, qbus, qdev_get_child_bus(&d->qdev, "isa.0"));
return d->devfn;
}