diff options
author | Anthony Liguori | 2011-09-26 15:00:40 +0200 |
---|---|---|
committer | Anthony Liguori | 2011-09-26 15:00:40 +0200 |
commit | 4c54661feb0437eab99186a0e462524e18592b9c (patch) | |
tree | 7e2c4969ac479ca13bfacbd569af3c08be103bad /hw/pc_piix.c | |
parent | Merge remote-tracking branch 'qemu-kvm-tmp/memory/core' into staging (diff) | |
parent | fdc: Convert isabus_fdc_init1 to MemoryRegion (diff) | |
download | qemu-4c54661feb0437eab99186a0e462524e18592b9c.tar.gz qemu-4c54661feb0437eab99186a0e462524e18592b9c.tar.xz qemu-4c54661feb0437eab99186a0e462524e18592b9c.zip |
Merge remote-tracking branch 'qemu-kvm-tmp/memory/batch' into staging
Diffstat (limited to 'hw/pc_piix.c')
-rw-r--r-- | hw/pc_piix.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 0144534e82..ce1c87fba9 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -130,17 +130,7 @@ static void pc_init1(MemoryRegion *system_memory, pci_enabled ? rom_memory : system_memory, &ram_memory); } - if (!xen_enabled()) { - cpu_irq = pc_allocate_cpu_irq(); - i8259 = i8259_init(cpu_irq[0]); - } else { - i8259 = xen_interrupt_controller_init(); - } isa_irq_state = g_malloc0(sizeof(*isa_irq_state)); - isa_irq_state->i8259 = i8259; - if (pci_enabled) { - ioapic_init(isa_irq_state); - } isa_irq = qemu_allocate_irqs(isa_irq_handler, isa_irq_state, 24); if (pci_enabled) { @@ -156,11 +146,23 @@ static void pc_init1(MemoryRegion *system_memory, } else { pci_bus = NULL; i440fx_state = NULL; - isa_bus_new(NULL); + isa_bus_new(NULL, system_io); no_hpet = 1; } isa_bus_irqs(isa_irq); + if (!xen_enabled()) { + cpu_irq = pc_allocate_cpu_irq(); + i8259 = i8259_init(cpu_irq[0]); + } else { + i8259 = xen_interrupt_controller_init(); + } + + isa_irq_state->i8259 = i8259; + if (pci_enabled) { + ioapic_init(isa_irq_state); + } + pc_register_ferr_irq(isa_get_irq(13)); pc_vga_init(pci_enabled? pci_bus: NULL); |