summaryrefslogtreecommitdiffstats
path: root/hw/i386/acpi-build.c
diff options
context:
space:
mode:
authorMarcel Apfelbaum2015-11-26 17:00:28 +0100
committerMichael S. Tsirkin2015-12-22 16:45:13 +0100
commit81ed6482a3478685c4fd27d766a92c4e0f8b34d1 (patch)
tree00de29a82d3c77798eb7202ba2c3457282ec1a72 /hw/i386/acpi-build.c
parenthw/pxb: introduce pxb-pcie expander for PCIe machines (diff)
downloadqemu-81ed6482a3478685c4fd27d766a92c4e0f8b34d1.tar.gz
qemu-81ed6482a3478685c4fd27d766a92c4e0f8b34d1.tar.xz
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/acpi-build.c')
-rw-r--r--hw/i386/acpi-build.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index eb156cb116..a60436b5bc 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -950,8 +950,7 @@ build_ssdt(GArray *table_data, GArray *linker,
/* Reserve space for header */
acpi_data_push(ssdt->buf, sizeof(AcpiTableHeader));
- /* Extra PCI root buses are implemented only for i440fx */
- bus = find_i440fx();
+ bus = PC_MACHINE(machine)->bus;
if (bus) {
QLIST_FOREACH(bus, &bus->child, sibling) {
uint8_t bus_num = pci_bus_num(bus);