qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 10/19] pc: acpi: make memory device's _UID integer


From: Igor Mammedov
Subject: [Qemu-devel] [PATCH 10/19] pc: acpi: make memory device's _UID integer
Date: Fri, 23 Oct 2015 16:57:13 +0200

It will allow us to drop ToInteger() operator from ASL/AML code.
Change is transparent to legacy ASL that uses ToInteger() operator,
since it can accept any ComputationalData which includes Integer type.

Signed-off-by: Igor Mammedov <address@hidden>
---
 hw/acpi/memory_hotplug_acpi_table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/acpi/memory_hotplug_acpi_table.c 
b/hw/acpi/memory_hotplug_acpi_table.c
index e702cad..3eb1780 100644
--- a/hw/acpi/memory_hotplug_acpi_table.c
+++ b/hw/acpi/memory_hotplug_acpi_table.c
@@ -123,7 +123,7 @@ void build_mhpt(GArray *table_data, GArray *linker, 
uint32_t nr_mem,
         const char *s;
 
         dev = aml_device("MP%02X", i);
-        aml_append(dev, aml_name_decl("_UID", aml_string("0x%02X", i)));
+        aml_append(dev, aml_name_decl("_UID", aml_int(i)));
         aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0C80")));
 
         method = aml_method("_CRS", 0);
-- 
1.8.3.1




reply via email to

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