[6328] powerpc/kvm: fix a openpic bug (Liu Yu)
Revision: 6328
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6328 Author: aliguori Date: 2009-01-15 21:19:54 +0000 (Thu, 15 Jan 2009)
Log Message:
-----------
powerpc/kvm: fix a openpic bug (Liu Yu)
An external interrupt should not interrupted in-servicing interrupt with equal priority.
Signed-off-by Liu Yu <[email protected]>
Acked-by Hollis Blanchard <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/hw/openpic.c
Modified: trunk/hw/openpic.c
===================================================================
hw/openpic.c +1 -1
@@ -279,7 +279,7 @@ }IRQ_get_next (opp, &dst->raised);if (IRQ_get_next (opp, &dst->servicing) !=-1 && - priority < dst->servicing.priority) { + priority <= dst->servicing.priority) {DPRINTF ("%s: IRQ %d is hidden by servicing IRQ %d on CPU %d\n" , __func__, n_IRQ, dst->servicing.next, n_CPU);/* Already servicing a higher priority IRQ */