Skip to contentSkip to conversation

hw/intc/sunxi-pic: fix irq status setting

PATCH In review liguang 2 participants 2 messages Nov 27, 2013 – Nov 29, 2013 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore

liguang

author
#0 lore raw

PATCH 1/1 hw/intc/sunxi-pic: fix irq status setting

---
 hw/intc/sunxi-pic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/intc/sunxi-pic.c +1 -1
index 5fd86f9..ea75f84 100644
@@ -77,7 +77,7 @@ static void sunxi_pic_set_irq(void *opaque, int irq, int level)
     SunxiPICState *s = opaque;
 
     if (level) {
-        set_bit(irq, (void *)&s->irq_pending[irq/32]);
+        set_bit(irq%32, (void *)&s->irq_pending[irq/32]);
     }
     sunxi_pic_update(s);
 }
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 4 lines · liguang
---
 hw/intc/sunxi-pic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

This isn't in mainline, so please don't send patches-to-patches. You should just fold this sort of fix into your next version of the patchset (and mention the list of changes in the coverletter).

thanks
-- PMM