Skip to contentSkip to conversation

[6328] powerpc/kvm: fix a openpic bug (Liu Yu)

Qemu-devel Anthony Liguori 1 participant 1 message Jan 15, 2009

lore
Share & tools
lore
#0 lore raw

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.

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 */