diff options
author | Cédric Le Goater <clg@kaod.org> | 2022-07-05 16:58:13 +0200 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-07-18 13:59:43 -0300 |
commit | 5e66cd0c7802f89e92407ad0a27169d26ffe5b7b (patch) | |
tree | 80cb854a7eed4df22aacf9ec2c9719633f6defd5 /hw/ppc/ppc.c | |
parent | 0f3e0c6fd39af1c10bf170e0463ece341d73e323 (diff) | |
download | qemu-5e66cd0c7802f89e92407ad0a27169d26ffe5b7b.zip qemu-5e66cd0c7802f89e92407ad0a27169d26ffe5b7b.tar.gz qemu-5e66cd0c7802f89e92407ad0a27169d26ffe5b7b.tar.bz2 |
ppc/e500: Allocate IRQ lines with qdev_init_gpio_in()
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20220705145814.461723-5-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 161e5f9..690f448 100644 --- a/hw/ppc/ppc.c +++ b/hw/ppc/ppc.c @@ -474,10 +474,7 @@ static void ppce500_set_irq(void *opaque, int pin, int level) void ppce500_irq_init(PowerPCCPU *cpu) { - CPUPPCState *env = &cpu->env; - - env->irq_inputs = (void **)qemu_allocate_irqs(&ppce500_set_irq, - cpu, PPCE500_INPUT_NB); + qdev_init_gpio_in(DEVICE(cpu), ppce500_set_irq, PPCE500_INPUT_NB); } /* Enable or Disable the E500 EPR capability */ |