aboutsummaryrefslogtreecommitdiff
path: root/hw/m68k
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2023-06-21 09:53:50 +0100
committerLaurent Vivier <laurent@vivier.eu>2023-06-22 09:29:37 +0200
commit464085e8f6776a0ca5a2677cf8b93b25c8a94da4 (patch)
treedefa58ad1f187d1aaddd88531bb4703223c3f64c /hw/m68k
parent36df1c5a635c11e5514ac561ed90a9c459cdbff2 (diff)
downloadqemu-464085e8f6776a0ca5a2677cf8b93b25c8a94da4.zip
qemu-464085e8f6776a0ca5a2677cf8b93b25c8a94da4.tar.gz
qemu-464085e8f6776a0ca5a2677cf8b93b25c8a94da4.tar.bz2
q800: don't access Nubus bus directly from the mac-nubus-bridge device
Instead use the qdev_get_child_bus() function which is intended for this exact purpose. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230621085353.113233-22-mark.cave-ayland@ilande.co.uk> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/m68k')
-rw-r--r--hw/m68k/q800.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c
index b226519..a32e6fb 100644
--- a/hw/m68k/q800.c
+++ b/hw/m68k/q800.c
@@ -448,7 +448,7 @@ static void q800_machine_init(MachineState *machine)
qdev_get_gpio_in_named(DEVICE(&m->via2), "nubus-irq",
VIA2_NUBUS_IRQ_9));
- nubus = &NUBUS_BRIDGE(dev)->bus;
+ nubus = NUBUS_BUS(qdev_get_child_bus(dev, "nubus-bus.0"));
/* framebuffer in nubus slot #9 */