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/ppc.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/ppc.c')
-rw-r--r-- | hw/ppc/ppc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index 8c88d3a..161e5f9 100644 --- a/hw/ppc/ppc.c +++ b/hw/ppc/ppc.c @@ -154,10 +154,7 @@ static void ppc6xx_set_irq(void *opaque, int pin, int level) void ppc6xx_irq_init(PowerPCCPU *cpu) { - CPUPPCState *env = &cpu->env; - - env->irq_inputs = (void **)qemu_allocate_irqs(&ppc6xx_set_irq, cpu, - PPC6xx_INPUT_NB); + qdev_init_gpio_in(DEVICE(cpu), ppc6xx_set_irq, PPC6xx_INPUT_NB); } #if defined(TARGET_PPC64) |