aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/ppc.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2022-07-05 16:58:13 +0200
committerDaniel Henrique Barboza <danielhb413@gmail.com>2022-07-18 13:59:43 -0300
commit5e66cd0c7802f89e92407ad0a27169d26ffe5b7b (patch)
tree80cb854a7eed4df22aacf9ec2c9719633f6defd5 /hw/ppc/ppc.c
parent0f3e0c6fd39af1c10bf170e0463ece341d73e323 (diff)
downloadqemu-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.c5
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 */