diff options
author | Bernhard Beschow <shentey@gmail.com> | 2024-07-04 22:58:52 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-07-16 20:04:08 +0200 |
commit | 9a365c25362c0d6b4cc0a53f88aae22b7d2532c6 (patch) | |
tree | 266225dc4d8a4b9f4a5cb3c41b634705d23899ab /hw/ppc/amigaone.c | |
parent | c88d07488c7d9cfdb755d460c63ca80aba323465 (diff) | |
download | qemu-9a365c25362c0d6b4cc0a53f88aae22b7d2532c6.zip qemu-9a365c25362c0d6b4cc0a53f88aae22b7d2532c6.tar.gz qemu-9a365c25362c0d6b4cc0a53f88aae22b7d2532c6.tar.bz2 |
hw/isa/vt82c686: Turn "intr" irq into a named gpio
Makes the code more comprehensible, matches the datasheet and
the piix4 device model.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240704205854.18537-2-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/ppc/amigaone.c')
-rw-r--r-- | hw/ppc/amigaone.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/ppc/amigaone.c b/hw/ppc/amigaone.c index ddfa094..900f93c 100644 --- a/hw/ppc/amigaone.c +++ b/hw/ppc/amigaone.c @@ -153,8 +153,9 @@ static void amigaone_init(MachineState *machine) object_property_add_alias(OBJECT(machine), "rtc-time", object_resolve_path_component(via, "rtc"), "date"); - qdev_connect_gpio_out(DEVICE(via), 0, - qdev_get_gpio_in(DEVICE(cpu), PPC6xx_INPUT_INT)); + qdev_connect_gpio_out_named(DEVICE(via), "intr", 0, + qdev_get_gpio_in(DEVICE(cpu), + PPC6xx_INPUT_INT)); for (i = 0; i < PCI_NUM_PINS; i++) { qdev_connect_gpio_out(dev, i, qdev_get_gpio_in_named(DEVICE(via), "pirq", i)); |