qemu-e2k/hw/mem
Wei Yang f60f5e8076 pc-dimm: use same mechanism for [get|set]_addr
[get|set]_addr are two counterpart to access PCDIMMDevice.addr.

Since we have already set up a property PC_DIMM_ADDR_PROP for this
field and use this mechanism in set_addr, it would be more proper to use
the same mechanism in get_addr.

This patch uses object_property_get_uint() to replace the direct memory
access to make [get|set]_addr with the same mechanism.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>

Message-Id: <20190211064629.20186-1-richardw.yang@linux.intel.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2019-02-21 12:28:41 -05:00
..
Makefile.objs memory-device: introduce separate config option 2018-10-24 06:44:59 -03:00
memory-device.c memory-device: rewrite address assignment using ranges 2019-01-09 22:09:31 -02:00
nvdimm.c nvdimm: set non-volatile on the memory region 2018-11-06 21:35:05 +01:00
pc-dimm.c pc-dimm: use same mechanism for [get|set]_addr 2019-02-21 12:28:41 -05:00
trace-events memory-device: trace when pre_plugging/plugging/unplugging 2018-10-24 06:44:59 -03:00