qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] apci: fix ACPI tables for -no-hpet option


From: Marcel Apfelbaum
Subject: [Qemu-devel] [PATCH] apci: fix ACPI tables for -no-hpet option
Date: Thu, 8 May 2014 15:58:40 +0300

A wrong offset was added to the tables pointed by RSDT
if the HPET table is not present.

Signed-off-by: Marcel Apfelbaum <address@hidden>
---
 hw/i386/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index c98df88..d65fab0 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1417,8 +1417,8 @@ void acpi_build(PcGuestInfo *guest_info, AcpiBuildTables 
*tables)
     acpi_add_table(table_offsets, tables->table_data);
 
     build_madt(tables->table_data, tables->linker, &cpu, guest_info);
-    acpi_add_table(table_offsets, tables->table_data);
     if (misc.has_hpet) {
+        acpi_add_table(table_offsets, tables->table_data);
         build_hpet(tables->table_data, tables->linker);
     }
     if (guest_info->numa_nodes) {
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]