From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzkHw-0008QQ-4v for qemu-devel@nongnu.org; Tue, 02 Jun 2015 07:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzkHt-00008w-KQ for qemu-devel@nongnu.org; Tue, 02 Jun 2015 07:23:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzkHt-00008Y-FK for qemu-devel@nongnu.org; Tue, 02 Jun 2015 07:23:17 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 2E258344EBF for ; Tue, 2 Jun 2015 11:23:17 +0000 (UTC) From: Marcel Apfelbaum Date: Tue, 2 Jun 2015 14:22:56 +0300 Message-Id: <1433244192-27624-2-git-send-email-marcel@redhat.com> In-Reply-To: <1433244192-27624-1-git-send-email-marcel@redhat.com> References: <1433244192-27624-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH V8 01/17] acpi: add implementation of aml_while() term List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel@redhat.com, mst@redhat.com Commit 68e6b0af7 (acpi: add aml_while() term) added the definition of aml_while without the actual implementation. Implement the term. Signed-off-by: Marcel Apfelbaum --- hw/acpi/aml-build.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 2bebf23..0d4b324 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -687,6 +687,14 @@ Aml *aml_else(void) return var; } +/* ACPI 1.0b: 16.2.5.3 Type 1 Opcodes Encoding: DefWhile */ +Aml *aml_while(Aml *predicate) +{ + Aml *var = aml_bundle(0xA2 /* WhileOp */, AML_PACKAGE); + aml_append(var, predicate); + return var; +} + /* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: DefMethod */ Aml *aml_method(const char *name, int arg_count) { -- 2.1.0