mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Fold piix3_init() intto i440fx_init
i440fx_init will now work properly if we don't setup piix3 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
bd7dce87ea
commit
85a750ca90
3 changed files with 8 additions and 16 deletions
3
hw/pc.c
3
hw/pc.c
|
@ -1279,8 +1279,7 @@ static void pc_init1(ram_addr_t ram_size,
|
|||
isa_irq = qemu_allocate_irqs(isa_irq_handler, isa_irq_state, 24);
|
||||
|
||||
if (pci_enabled) {
|
||||
pci_bus = i440fx_init(&i440fx_state, isa_irq);
|
||||
piix3_devfn = piix3_init(pci_bus, -1);
|
||||
pci_bus = i440fx_init(&i440fx_state, &piix3_devfn, isa_irq);
|
||||
} else {
|
||||
pci_bus = NULL;
|
||||
isa_bus_new(NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue