diff mbox

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

Message ID 1385531272-23445-1-git-send-email-lig.fnst@cn.fujitsu.com
State New
Headers show

Commit Message

liguang Nov. 27, 2013, 5:47 a.m. UTC
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
 hw/intc/sunxi-pic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Peter Maydell Nov. 29, 2013, 11:14 a.m. UTC | #1
On 27 November 2013 05:47, liguang <lig.fnst@cn.fujitsu.com> wrote:
> Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
> ---
>  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
diff mbox

Patch

diff --git a/hw/intc/sunxi-pic.c b/hw/intc/sunxi-pic.c
index 5fd86f9..ea75f84 100644
--- a/hw/intc/sunxi-pic.c
+++ b/hw/intc/sunxi-pic.c
@@ -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);
 }