diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2021-09-24 08:38:07 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-09-29 10:45:19 +0200 |
commit | b297843ef5666c094c153a2a7d78c6b010dd9154 (patch) | |
tree | 09dd9d60c753d5e170f7b94d38eb13f1027ecd05 /hw/m68k | |
parent | d2cf28a0c6bcfba9d95e83ac628476e0f9cc178f (diff) | |
download | qemu-b297843ef5666c094c153a2a7d78c6b010dd9154.zip qemu-b297843ef5666c094c153a2a7d78c6b010dd9154.tar.gz qemu-b297843ef5666c094c153a2a7d78c6b010dd9154.tar.bz2 |
q800: wire up nubus IRQs
Nubus IRQs are routed to the CPU through the VIA2 device so wire up the IRQs
using gpios accordingly.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210924073808.1041-20-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c index 074acf4..5bc9df5 100644 --- a/hw/m68k/q800.c +++ b/hw/m68k/q800.c @@ -398,6 +398,12 @@ static void q800_init(MachineState *machine) sysbus_mmio_map(SYS_BUS_DEVICE(dev), 1, NUBUS_SLOT_BASE + MAC_NUBUS_FIRST_SLOT * NUBUS_SLOT_SIZE); + for (i = 0; i < VIA2_NUBUS_IRQ_NB; i++) { + qdev_connect_gpio_out(dev, 9 + i, + qdev_get_gpio_in_named(via2_dev, "nubus-irq", + VIA2_NUBUS_IRQ_9 + i)); + } + nubus = &NUBUS_BRIDGE(dev)->bus; /* framebuffer in nubus slot #9 */ |