mirror of https://github.com/proxmox/mirror_qemu
hw/arm_gic: gic_set_pending_private() is NVIC only
The function gic_set_pending_private() is now used by the NVIC only (for the GIC we now set PPI interrupts via gpio lines and gic_set_irq()). So make it #ifdef NVIC and remove the 'attribute unused' annotation. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>master
parent
0d256bdc8f
commit
b7dc1a597a
|
@ -185,8 +185,8 @@ static void gic_update(gic_state *s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__((unused))
|
#ifdef NVIC
|
||||||
gic_set_pending_private(gic_state *s, int cpu, int irq)
|
static void gic_set_pending_private(gic_state *s, int cpu, int irq)
|
||||||
{
|
{
|
||||||
int cm = 1 << cpu;
|
int cm = 1 << cpu;
|
||||||
|
|
||||||
|
@ -197,6 +197,7 @@ gic_set_pending_private(gic_state *s, int cpu, int irq)
|
||||||
GIC_SET_PENDING(irq, cm);
|
GIC_SET_PENDING(irq, cm);
|
||||||
gic_update(s);
|
gic_update(s);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Process a change in an external IRQ input. */
|
/* Process a change in an external IRQ input. */
|
||||||
static void gic_set_irq(void *opaque, int irq, int level)
|
static void gic_set_irq(void *opaque, int irq, int level)
|
||||||
|
|
Loading…
Reference in New Issue