mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
ich9: unify pic and ioapic IRQ vectors
ich9->pic and ich9->ioapic differ for the first 16 GSIs (because ich9->pic is wired to 8259+IOAPIC but ich9->ioapic is wired to IOAPIC only). However, ich9->ioapic is never used for the first 16 GSIs, so the two vectors can be merged. Reviewed-by: Efimov Vasily <real@ispras.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a94dd6a9d6
commit
35a6b23c82
3 changed files with 4 additions and 6 deletions
|
@ -225,7 +225,7 @@ static void ich9_lpc_update_pic(ICH9LPCState *lpc, int gsi)
|
|||
pic_level |= lpc->sci_level;
|
||||
}
|
||||
|
||||
qemu_set_irq(lpc->pic[gsi], pic_level);
|
||||
qemu_set_irq(lpc->gsi[gsi], pic_level);
|
||||
}
|
||||
|
||||
/* APIC mode: GSIx: PIRQ[A-H] -> GSI 16, ... no pirq shares same APIC pins. */
|
||||
|
@ -251,7 +251,7 @@ static void ich9_lpc_update_apic(ICH9LPCState *lpc, int gsi)
|
|||
level |= lpc->sci_level;
|
||||
}
|
||||
|
||||
qemu_set_irq(lpc->ioapic[gsi], level);
|
||||
qemu_set_irq(lpc->gsi[gsi], level);
|
||||
}
|
||||
|
||||
void ich9_lpc_set_irq(void *opaque, int pirq, int level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue