The current code treats some bits in IDE as special for critical interrupts. While there is logic to route interrupts as critical, that happens through a different register. So for now I'm just removing the check to enable up to 32 virtual CPUs.
Signed-off-by: Alexander Graf <ag...@suse.de> --- hw/openpic.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index 08a3a65..6630206 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -1278,14 +1278,7 @@ qemu_irq *openpic_init (PCIBus *bus, int *pmem_index, int nb_cpus, static void mpic_irq_raise(openpic_t *mpp, int n_CPU, IRQ_src_t *src) { - int n_ci = IDR_CI0 - n_CPU; - - if(test_bit(&src->ide, n_ci)) { - qemu_irq_raise(mpp->dst[n_CPU].irqs[OPENPIC_OUTPUT_CINT]); - } - else { - qemu_irq_raise(mpp->dst[n_CPU].irqs[OPENPIC_OUTPUT_INT]); - } + qemu_irq_raise(mpp->dst[n_CPU].irqs[OPENPIC_OUTPUT_INT]); } static void mpic_reset (void *opaque) -- 1.6.0.2