diff options
author | Marcel Apfelbaum <marcel@redhat.com> | 2015-06-02 14:22:56 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-06-03 18:19:16 +0200 |
commit | 32d9ca15bac63e8a7bad6dc1a4ab624e6d6d3b0f (patch) | |
tree | 504316dd7e591d5bd1d199226ca5696143a73b74 /hw/acpi | |
parent | ca9b46bcecc0f06882eec1b152b71f93a066da79 (diff) | |
download | qemu-32d9ca15bac63e8a7bad6dc1a4ab624e6d6d3b0f.zip qemu-32d9ca15bac63e8a7bad6dc1a4ab624e6d6d3b0f.tar.gz qemu-32d9ca15bac63e8a7bad6dc1a4ab624e6d6d3b0f.tar.bz2 |
acpi: add implementation of aml_while() term
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 <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r-- | hw/acpi/aml-build.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |