Skip to content

Commit

Permalink
arm_gic: gic_update should always update all cores
Browse files Browse the repository at this point in the history
This patch fixes so that gic_update always updates all the cores with
new pending irq states.  If the function returns early it is possible
to get interrupts that has already been acknowledged.

Signed-off-by: Johan Karlsson <[email protected]>
[PMM: rebased to apply to current master]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
Johan Karlsson authored and pm215 committed Jun 15, 2015
1 parent 4e42a6c commit 235069a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/intc/arm_gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void gic_update(GICState *s)
|| !(s->cpu_ctlr[cpu] & (GICC_CTLR_EN_GRP0 | GICC_CTLR_EN_GRP1))) {
qemu_irq_lower(s->parent_irq[cpu]);
qemu_irq_lower(s->parent_fiq[cpu]);
return;
continue;
}
best_prio = 0x100;
best_irq = 1023;
Expand Down

0 comments on commit 235069a

Please sign in to comment.