From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpdmj-0000Ce-0u for qemu-devel@nongnu.org; Fri, 23 Oct 2015 10:57:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpdmi-0005W5-4v for qemu-devel@nongnu.org; Fri, 23 Oct 2015 10:57:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpdmh-0005Vz-W1 for qemu-devel@nongnu.org; Fri, 23 Oct 2015 10:57:36 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 77A51AA8 for ; Fri, 23 Oct 2015 14:57:35 +0000 (UTC) From: Igor Mammedov Date: Fri, 23 Oct 2015 16:57:13 +0200 Message-Id: <1445612242-79172-11-git-send-email-imammedo@redhat.com> In-Reply-To: <1445612242-79172-1-git-send-email-imammedo@redhat.com> References: <1445612242-79172-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 10/19] pc: acpi: make memory device's _UID integer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, mst@redhat.com 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 --- 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