diff options
author | Cédric Le Goater <clg@kaod.org> | 2022-07-05 16:58:12 +0200 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-07-18 13:59:43 -0300 |
commit | 0f3e0c6fd39af1c10bf170e0463ece341d73e323 (patch) | |
tree | 386063f33432e687d53787a53db5d85d9051243d /hw/ppc/prep_systemio.c | |
parent | 47b60fc6252448c9b8a3cc2296e4b26af57078d3 (diff) | |
download | qemu-0f3e0c6fd39af1c10bf170e0463ece341d73e323.zip qemu-0f3e0c6fd39af1c10bf170e0463ece341d73e323.tar.gz qemu-0f3e0c6fd39af1c10bf170e0463ece341d73e323.tar.bz2 |
ppc/6xx: Allocate IRQ lines with qdev_init_gpio_in()
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20220705145814.461723-4-clg@kaod.org>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'hw/ppc/prep_systemio.c')
-rw-r--r-- | hw/ppc/prep_systemio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/prep_systemio.c b/hw/ppc/prep_systemio.c index 8c9b8dd..5a56f15 100644 --- a/hw/ppc/prep_systemio.c +++ b/hw/ppc/prep_systemio.c @@ -262,7 +262,7 @@ static void prep_systemio_realize(DeviceState *dev, Error **errp) qemu_set_irq(s->non_contiguous_io_map_irq, s->iomap_type & PORT0850_IOMAP_NONCONTIGUOUS); cpu = POWERPC_CPU(first_cpu); - s->softreset_irq = cpu->env.irq_inputs[PPC6xx_INPUT_HRESET]; + s->softreset_irq = qdev_get_gpio_in(DEVICE(cpu), PPC6xx_INPUT_HRESET); isa_register_portio_list(isa, &s->portio, 0x0, ppc_io800_port_list, s, "systemio800"); |