mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/i386/pc: Move gsi_state creation code
The code block related to IRQ starts few lines later. Move the comment and the pc_gsi_create() invocation where we start to use the IRQs. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20191018135910.24286-4-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
417258f139
commit
b00c6f18a6
1 changed files with 3 additions and 3 deletions
|
@ -211,9 +211,6 @@ static void pc_q35_init(MachineState *machine)
|
||||||
rom_memory, &ram_memory);
|
rom_memory, &ram_memory);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* irq lines */
|
|
||||||
gsi_state = pc_gsi_create(&x86ms->gsi, pcmc->pci_enabled);
|
|
||||||
|
|
||||||
/* create pci host bus */
|
/* create pci host bus */
|
||||||
q35_host = Q35_HOST_DEVICE(qdev_create(NULL, TYPE_Q35_HOST_DEVICE));
|
q35_host = Q35_HOST_DEVICE(qdev_create(NULL, TYPE_Q35_HOST_DEVICE));
|
||||||
|
|
||||||
|
@ -247,6 +244,9 @@ static void pc_q35_init(MachineState *machine)
|
||||||
object_property_set_link(OBJECT(machine), OBJECT(lpc),
|
object_property_set_link(OBJECT(machine), OBJECT(lpc),
|
||||||
PC_MACHINE_ACPI_DEVICE_PROP, &error_abort);
|
PC_MACHINE_ACPI_DEVICE_PROP, &error_abort);
|
||||||
|
|
||||||
|
/* irq lines */
|
||||||
|
gsi_state = pc_gsi_create(&x86ms->gsi, pcmc->pci_enabled);
|
||||||
|
|
||||||
ich9_lpc = ICH9_LPC_DEVICE(lpc);
|
ich9_lpc = ICH9_LPC_DEVICE(lpc);
|
||||||
lpc_dev = DEVICE(lpc);
|
lpc_dev = DEVICE(lpc);
|
||||||
for (i = 0; i < GSI_NUM_PINS; i++) {
|
for (i = 0; i < GSI_NUM_PINS; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue