]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/arm_gic: gic_set_pending_private() is NVIC only
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Apr 2012 11:39:09 +0000 (11:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Apr 2012 12:29:04 +0000 (12:29 +0000)
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>
hw/arm_gic.c

index 589ac5ef17245da2ec83c097e484f5cd05efdf87..ba6117adbdc66dfcaddba072268bddb65cac0ac6 100644 (file)
@@ -185,8 +185,8 @@ static void gic_update(gic_state *s)
     }
 }
 
-static void __attribute__((unused))
-gic_set_pending_private(gic_state *s, int cpu, int irq)
+#ifdef NVIC
+static void gic_set_pending_private(gic_state *s, int cpu, int irq)
 {
     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_update(s);
 }
+#endif
 
 /* Process a change in an external IRQ input.  */
 static void gic_set_irq(void *opaque, int irq, int level)