Commit 2486516710d6365b5ec2be267bbdf4c79d0af3ad

Authored by aliguori
1 parent 57be80f9

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 <yu.liu@freescale.com>
Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6328 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
hw/openpic.c
... ... @@ -279,7 +279,7 @@ static void IRQ_local_pipe (openpic_t *opp, int n_CPU, int n_IRQ)
279 279 }
280 280 IRQ_get_next(opp, &dst->raised);
281 281 if (IRQ_get_next(opp, &dst->servicing) != -1 &&
282   - priority < dst->servicing.priority) {
  282 + priority <= dst->servicing.priority) {
283 283 DPRINTF("%s: IRQ %d is hidden by servicing IRQ %d on CPU %d\n",
284 284 __func__, n_IRQ, dst->servicing.next, n_CPU);
285 285 /* Already servicing a higher priority IRQ */
... ...