summaryrefslogtreecommitdiffstats
path: root/hw/i386/acpi-build.c
diff options
context:
space:
mode:
authorIgor Mammedov2015-12-28 18:02:53 +0100
committerMichael S. Tsirkin2016-01-09 22:20:19 +0100
commite9fce798615b37c661df9bff405d74c69874ceb4 (patch)
tree47ce5eda54a4dd7b2e5fd223c479895abddd3070 /hw/i386/acpi-build.c
parentpc: acpi: q35: move PRTP routing table into SSDT (diff)
downloadqemu-e9fce798615b37c661df9bff405d74c69874ceb4.tar.gz
qemu-e9fce798615b37c661df9bff405d74c69874ceb4.tar.xz
qemu-e9fce798615b37c661df9bff405d74c69874ceb4.zip
pc: acpi: q35: move _PIC() method into SSDT
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/acpi-build.c')
-rw-r--r--hw/i386/acpi-build.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 6095e5932e..55ea84d43b 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1696,6 +1696,14 @@ static void build_q35_pci0_int(Aml *table)
Aml *sb_scope = aml_scope("_SB");
Aml *pci0_scope = aml_scope("PCI0");
+ /* Zero => PIC mode, One => APIC Mode */
+ aml_append(table, aml_name_decl("PICF", aml_int(0)));
+ method = aml_method("_PIC", 1, AML_NOTSERIALIZED);
+ {
+ aml_append(method, aml_store(aml_arg(0), aml_name("PICF")));
+ }
+ aml_append(table, method);
+
aml_append(pci0_scope,
aml_name_decl("PRTP", build_q35_routing_table("LNK")));
aml_append(pci0_scope,