diff options
author | Bernhard Beschow <shentey@gmail.com> | 2022-06-03 20:50:39 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-06-11 11:44:50 +0200 |
commit | e3d198eed1a2f6cc34f781fb3fe5c57caa66cc7c (patch) | |
tree | 1be633d108c9459d0203441b205fd89a2e7ed58e /hw/mips/malta.c | |
parent | c397a2d3e45ea72d2513d95c4e5d148fbc301131 (diff) | |
download | qemu-e3d198eed1a2f6cc34f781fb3fe5c57caa66cc7c.zip qemu-e3d198eed1a2f6cc34f781fb3fe5c57caa66cc7c.tar.gz qemu-e3d198eed1a2f6cc34f781fb3fe5c57caa66cc7c.tar.bz2 |
hw/isa/piix4: Factor out ISABus retrieval from piix4_create()
Modernizes the code.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220603185045.143789-6-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/mips/malta.c')
-rw-r--r-- | hw/mips/malta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/mips/malta.c b/hw/mips/malta.c index 9ffdc5b..e446b25 100644 --- a/hw/mips/malta.c +++ b/hw/mips/malta.c @@ -1399,7 +1399,8 @@ void mips_malta_init(MachineState *machine) empty_slot_init("GT64120", 0, 0x20000000); /* Southbridge */ - dev = piix4_create(pci_bus, &isa_bus, &smbus); + dev = piix4_create(pci_bus, &smbus); + isa_bus = ISA_BUS(qdev_get_child_bus(dev, "isa.0")); /* Interrupt controller */ qdev_connect_gpio_out_named(dev, "intr", 0, i8259_irq); |