Patchwork [2/4] target-arm: Disable priority_mask feature

login
register
mail settings
Submitter Sebastian Huber
Date Dec. 16, 2011, 7:30 p.m.
Message ID <1324063839-26778-1-git-send-email-sebastian.huber@embedded-brains.de>
Download mbox | patch
Permalink /patch/131890/
State New
Headers show

Comments

Sebastian Huber - Dec. 16, 2011, 7:30 p.m.
This is unused for the ARMv7-M NVIC.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
 hw/arm_gic.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/arm_gic.c b/hw/arm_gic.c
index 5139d95..cafcc81 100644
--- a/hw/arm_gic.c
+++ b/hw/arm_gic.c
@@ -707,7 +707,11 @@  static void gic_reset(gic_state *s)
     int i;
     memset(s->irq_state, 0, GIC_NIRQ * sizeof(gic_irq_state));
     for (i = 0 ; i < NUM_CPU(s); i++) {
+#ifdef NVIC
+        s->priority_mask[i] = 0x100;
+#else
         s->priority_mask[i] = 0xf0;
+#endif
         s->current_pending[i] = 1023;
         s->running_irq[i] = 1023;
         s->running_priority[i] = 0x100;