summaryrefslogtreecommitdiffstats
path: root/hw/acpi
diff options
context:
space:
mode:
authorXiao Guangrong2016-03-01 11:56:04 +0100
committerMichael S. Tsirkin2016-03-11 13:54:28 +0100
commit9815cba5027b0a8732733dc2a908b4e06d6b8ffc (patch)
tree1721f372c1671fd9945493bdaff842348e5f3e94 /hw/acpi
parentacpi: add aml_create_field() (diff)
downloadqemu-9815cba5027b0a8732733dc2a908b4e06d6b8ffc.tar.gz
qemu-9815cba5027b0a8732733dc2a908b4e06d6b8ffc.tar.xz
qemu-9815cba5027b0a8732733dc2a908b4e06d6b8ffc.zip
acpi: add aml_concatenate()
It will be used by nvdimm acpi Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r--hw/acpi/aml-build.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 45b7f0abed..bb0cf523ce 100644
--- a/hw/acpi/aml-build.c
+++ b/hw/acpi/aml-build.c
@@ -1437,6 +1437,13 @@ Aml *aml_alias(const char *source_object, const char *alias_object)
return var;
}
+/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefConcat */
+Aml *aml_concatenate(Aml *source1, Aml *source2, Aml *target)
+{
+ return build_opcode_2arg_dst(0x73 /* ConcatOp */, source1, source2,
+ target);
+}
+
void
build_header(GArray *linker, GArray *table_data,
AcpiTableHeader *h, const char *sig, int len, uint8_t rev,