qemu/hw/acpi
Igor Mammedov 439e2a6e10 acpi: aml: add helper for Opcode Arg2 Arg2 [Dst] AML pattern
Currently AML API doesn't compose terms in form of
following pattern:

   Opcode Arg2 Arg2 [Dst]

but ASL used in piix4/q35 DSDT ACPI tables uses that
form, so for clean conversion of it, AML API should
be able to handle an optional 'Dst' argumet used there.

Since above pattern is used by arithmetic/bit ops,
introduce helper that they could reuse.
It reduces code duplication in existing 5 aml_foo()
functions and also will prevent more duplication
when exiting functions are extended to support
optional 'Dst' argument.

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>
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
2015-12-22 18:39:20 +02:00
..
acpi_interface.c acpi: introduce TYPE_ACPI_DEVICE_IF interface 2014-06-19 18:44:22 +03:00
aml-build.c acpi: aml: add helper for Opcode Arg2 Arg2 [Dst] AML pattern 2015-12-22 18:39:20 +02:00
bios-linker-loader.c bios linker: validate pointer within table 2015-02-26 12:42:15 +01:00
core.c acpi: fix buffer overrun on migration 2015-11-19 15:26:00 +02:00
cpu_hotplug.c acpi: add acpi_send_gpe_event() to rise sci for hotplug 2015-06-03 18:19:16 +02:00
ich9.c hw/acpi/ich9: clean up stale comment about KVM not supporting SMM 2015-07-27 22:44:47 +03:00
Makefile.objs nvdimm acpi: build ACPI NFIT table 2015-12-22 18:39:20 +02:00
memory_hotplug.c nvdimm: implement NVDIMM device abstract 2015-12-22 18:39:20 +02:00
nvdimm.c nvdimm acpi: build ACPI nvdimm devices 2015-12-22 18:39:20 +02:00
pcihp.c acpi: add acpi_send_gpe_event() to rise sci for hotplug 2015-06-03 18:19:16 +02:00
piix4.c pc_piix: rename kvm_enabled to smm_enabled 2015-07-06 17:59:44 +02:00
tco.c ich9: implement strap SPKR pin logic 2015-07-08 10:09:55 +03:00