diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2011-12-15 22:09:54 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-20 15:44:30 -0600 |
commit | 605730793dfa0974a1dfb6a7a29d7eb68c0befbc (patch) | |
tree | a60a4ffecbcc3bb22f3fb7e8a1755626cd2d9ca9 /hw/piix_pci.c | |
parent | a811f53ccb57911636f7d3d9cb1652d6d49df2c3 (diff) | |
download | qemu-605730793dfa0974a1dfb6a7a29d7eb68c0befbc.zip qemu-605730793dfa0974a1dfb6a7a29d7eb68c0befbc.tar.gz qemu-605730793dfa0974a1dfb6a7a29d7eb68c0befbc.tar.bz2 |
pc: 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/piix_pci.c')
-rw-r--r-- | hw/piix_pci.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hw/piix_pci.c b/hw/piix_pci.c index e188c7a..3652522 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -252,7 +252,7 @@ static int i440fx_initfn(PCIDevice *dev) static PCIBus *i440fx_common_init(const char *device_name, PCII440FXState **pi440fx_state, int *piix3_devfn, - qemu_irq *pic, + ISABus **isa_bus, qemu_irq *pic, MemoryRegion *address_space_mem, MemoryRegion *address_space_io, ram_addr_t ram_size, @@ -318,6 +318,8 @@ static PCIBus *i440fx_common_init(const char *device_name, } qdev_property_add_child(dev, "piix3", &piix3->dev.qdev, NULL); piix3->pic = pic; + *isa_bus = DO_UPCAST(ISABus, qbus, + qdev_get_child_bus(&piix3->dev.qdev, "isa.0")); *piix3_devfn = piix3->dev.devfn; @@ -332,7 +334,7 @@ static PCIBus *i440fx_common_init(const char *device_name, } PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn, - qemu_irq *pic, + ISABus **isa_bus, qemu_irq *pic, MemoryRegion *address_space_mem, MemoryRegion *address_space_io, ram_addr_t ram_size, @@ -345,7 +347,7 @@ PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn, { PCIBus *b; - b = i440fx_common_init("i440FX", pi440fx_state, piix3_devfn, pic, + b = i440fx_common_init("i440FX", pi440fx_state, piix3_devfn, isa_bus, pic, address_space_mem, address_space_io, ram_size, pci_hole_start, pci_hole_size, pci_hole64_size, pci_hole64_size, |