* [Qemu-devel] [PATCH 2/4] target-arm: Disable priority_mask feature
@ 2011-12-16 19:30 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2011-12-16 19:30 UTC (permalink / raw)
To: qemu-devel; +Cc: Sebastian Huber
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(-)
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;
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-16 19:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-16 19:30 [Qemu-devel] [PATCH 2/4] target-arm: Disable priority_mask feature Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).