Revision c68ea704 hw/openpic.c
b/hw/openpic.c | ||
---|---|---|
265 | 265 |
if (priority > dst->raised.priority) { |
266 | 266 |
IRQ_get_next(opp, &dst->raised); |
267 | 267 |
DPRINTF("Raise CPU IRQ\n"); |
268 |
cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HARD); |
|
268 |
/* XXX: choose the correct cpu */ |
|
269 |
cpu_interrupt(first_cpu, CPU_INTERRUPT_HARD); |
|
269 | 270 |
} |
270 | 271 |
} |
271 | 272 |
|
... | ... | |
532 | 533 |
/* XXX: Should be able to reset any CPU */ |
533 | 534 |
if (val & 1) { |
534 | 535 |
DPRINTF("Reset CPU IRQ\n"); |
535 |
// cpu_interrupt(cpu_single_env, CPU_INTERRUPT_RESET);
|
|
536 |
// cpu_interrupt(first_cpu, CPU_INTERRUPT_RESET);
|
|
536 | 537 |
} |
537 | 538 |
break; |
538 | 539 |
#if MAX_IPI > 0 |
... | ... | |
781 | 782 |
src = &opp->src[n_IRQ]; |
782 | 783 |
if (IPVP_PRIORITY(src->ipvp) > dst->servicing.priority) { |
783 | 784 |
DPRINTF("Raise CPU IRQ\n"); |
784 |
cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HARD); |
|
785 |
/* XXX: choose cpu */ |
|
786 |
cpu_interrupt(first_cpu, CPU_INTERRUPT_HARD); |
|
785 | 787 |
} |
786 | 788 |
} |
787 | 789 |
break; |
Also available in: Unified diff