[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 20/23] q800: don't access Nubus bus directly from the mac-nubu
|
From: |
Mark Cave-Ayland |
|
Subject: |
[PATCH v2 20/23] q800: don't access Nubus bus directly from the mac-nubus-bridge device |
|
Date: |
Wed, 31 May 2023 13:53:57 +0100 |
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>
---
hw/m68k/q800.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c
index d02a1a7a1f..946cb09e30 100644
--- a/hw/m68k/q800.c
+++ b/hw/m68k/q800.c
@@ -445,7 +445,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 */
--
2.30.2
- Re: [PATCH v2 15/23] q800: move ESCC device to Q800MachineState, (continued)
- [PATCH v2 18/23] q800: move SWIM device to Q800MachineState, Mark Cave-Ayland, 2023/05/31
- [PATCH v2 16/23] q800: move escc_orgate device to Q800MachineState, Mark Cave-Ayland, 2023/05/31
- [PATCH v2 17/23] q800: move ESP device to Q800MachineState, Mark Cave-Ayland, 2023/05/31
- [PATCH v2 20/23] q800: don't access Nubus bus directly from the mac-nubus-bridge device,
Mark Cave-Ayland <=
- [PATCH v2 22/23] mac_via: fix rtc command decoding from PRAM addresses 0x0 to 0xf, Mark Cave-Ayland, 2023/05/31
- [PATCH v2 23/23] mac_via: fix rtc command decoding for the PRAM seconds registers, Mark Cave-Ayland, 2023/05/31
- [PATCH v2 19/23] q800: move mac-nubus-bridge device to Q800MachineState, Mark Cave-Ayland, 2023/05/31
- [PATCH v2 21/23] q800: move macfb device to Q800MachineState, Mark Cave-Ayland, 2023/05/31