acpi: extend aml_field() to support UpdateRule
commitaf5098973136029211848b4999ad5d38bc90180f
authorZhu Guihua <zhugh.fnst@cn.fujitsu.com>
Mon, 27 Apr 2015 08:47:19 +0000 (27 16:47 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Apr 2015 19:08:20 +0000 (27 21:08 +0200)
tree01869a7f5394eb1729c03903067586442a34ca33
parentf7d3e29db5a5900a1f0ed10f8313f7c3f28e5b59
acpi: extend aml_field() to support UpdateRule

The flags field is declared with default update rule 'Preserve',
this patch extends aml_field() to support UpdateRule so that we
can specify different values per field.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/aml-build.c
hw/i386/acpi-build.c
include/hw/acpi/aml-build.h