diff options
author | Marcel Apfelbaum <marcel@redhat.com> | 2015-11-26 18:00:28 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-12-22 17:45:13 +0200 |
commit | 81ed6482a3478685c4fd27d766a92c4e0f8b34d1 (patch) | |
tree | 00de29a82d3c77798eb7202ba2c3457282ec1a72 /hw/i386/pc_piix.c | |
parent | 02b07434bed8360715198b4cbfdfebd17f7cac32 (diff) | |
download | qemu-81ed6482a3478685c4fd27d766a92c4e0f8b34d1.zip |
hw/i386: extend pxb query for all PC machines
Add bus property to PC machines and use it when looking
for primary PCI root bus (bus 0).
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/i386/pc_piix.c')
-rw-r--r-- | hw/i386/pc_piix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 7d847b247d..9654628f09 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -185,6 +185,7 @@ static void pc_init1(MachineState *machine, pcms->below_4g_mem_size, pcms->above_4g_mem_size, pci_memory, ram_memory); + pcms->bus = pci_bus; } else { pci_bus = NULL; i440fx_state = NULL; |