aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/ppc.c6
-rw-r--r--target-ppc/cpu.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/hw/ppc.c b/hw/ppc.c
index 92e5bfedb2..a25a3607f3 100644
--- a/hw/ppc.c
+++ b/hw/ppc.c
@@ -172,7 +172,8 @@ static void ppc6xx_set_irq (void *opaque, int pin, int level)
void ppc6xx_irq_init (CPUState *env)
{
- env->irq_inputs = (void **)qemu_allocate_irqs(&ppc6xx_set_irq, env, 6);
+ env->irq_inputs = (void **)qemu_allocate_irqs(&ppc6xx_set_irq, env,
+ PPC6xx_INPUT_NB);
}
#if defined(TARGET_PPC64)
@@ -295,7 +296,8 @@ static void ppc970_set_irq (void *opaque, int pin, int level)
void ppc970_irq_init (CPUState *env)
{
- env->irq_inputs = (void **)qemu_allocate_irqs(&ppc970_set_irq, env, 7);
+ env->irq_inputs = (void **)qemu_allocate_irqs(&ppc970_set_irq, env,
+ PPC970_INPUT_NB);
}
#endif /* defined(TARGET_PPC64) */
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index 7705ca20c9..f249522af2 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -1249,6 +1249,7 @@ enum {
PPC970_INPUT_MCP = 4,
PPC970_INPUT_INT = 5,
PPC970_INPUT_THINT = 6,
+ PPC970_INPUT_NB,
};
#endif