]> git.proxmox.com Git - mirror_qemu.git/commit
acpi nvdimm: fix OperationRegion definition
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Fri, 28 Oct 2016 16:11:51 +0000 (00:11 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Nov 2016 17:21:08 +0000 (19:21 +0200)
commitc0b3b863acb0087120322497ac2fdbcf149a2e62
tree61ac29ba04b293d6ff897490a8464d95129bd86e
parentd51d1d7edeb869e0010d6b3833bd53ad561ff805
acpi nvdimm: fix OperationRegion definition

Based on ACPI spec:
 RegionOffset := TermArg => Integer

However, Named object is not a TermArg.

This patch moves OperationRegion to NCAL() and uses localX as
its RegionOffset

Suggested-by: Igor Mammedov <imammedo@redhat.com>
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>
hw/acpi/nvdimm.c