mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -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
|
@ -190,8 +190,7 @@ static void pc_q35_init(MachineState *machine)
|
|||
PC_MACHINE_ACPI_DEVICE_PROP, &error_abort);
|
||||
|
||||
ich9_lpc = ICH9_LPC_DEVICE(lpc);
|
||||
ich9_lpc->pic = gsi;
|
||||
ich9_lpc->ioapic = gsi_state->ioapic_irq;
|
||||
ich9_lpc->gsi = gsi;
|
||||
pci_bus_irqs(host_bus, ich9_lpc_set_irq, ich9_lpc_map_irq, ich9_lpc,
|
||||
ICH9_LPC_NB_PIRQS);
|
||||
pci_bus_set_route_irq_fn(host_bus, ich9_route_intx_pin_to_irq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue