acpi: extend aml_add() to accept target argument
commit20ca52088448252c392cde99a06bb9bf020413b4
authorIgor Mammedov <imammedo@redhat.com>
Wed, 9 Dec 2015 23:41:02 +0000 (10 00:41 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 22 Dec 2015 16:39:21 +0000 (22 18:39 +0200)
tree7aa0c8d6d6ae5c956c411f977da77b585d9d8af8
parent439e2a6e10ed7f5da819bf7dcaa54b8cfdbeab0d
acpi: extend aml_add() to accept target argument

it allows to express following ASL expression:
 Add(arg1, arg2, result)

usecases that do not need to store result
should pass NULL as 3rd arg that would express
 Add(arg1, arg2,)
construct.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
hw/acpi/aml-build.c
hw/i386/acpi-build.c
include/hw/acpi/aml-build.h