diff options
author | David Gibson | 2016-01-21 02:37:51 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2016-02-06 19:44:10 +0100 |
commit | adcb4ee660cf579f003e9d4afd61b608259091c6 (patch) | |
tree | e3daef631a060a064b01c81cdc9a20e1ef9366e3 | |
parent | pc: set the OEM fields in the RSDT and the FADT from the SLIC (diff) | |
download | qemu-adcb4ee660cf579f003e9d4afd61b608259091c6.tar.gz qemu-adcb4ee660cf579f003e9d4afd61b608259091c6.tar.xz qemu-adcb4ee660cf579f003e9d4afd61b608259091c6.zip |
dimm: Correct type of MemoryHotplugState->base
The 'base' field of MemoryHotplugState is ram_addr_t, which indicates that
it exists in the abstract address space of RAM regions.
However, the actual usage of this field indicates that it is a concrete
physical address (it's passed as an offset to memory_region_add_subgregion
for example).
So, correct its type to 'hwaddr'.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r-- | include/hw/mem/pc-dimm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/mem/pc-dimm.h b/include/hw/mem/pc-dimm.h index d83bf30ea9..218dfb0eda 100644 --- a/include/hw/mem/pc-dimm.h +++ b/include/hw/mem/pc-dimm.h @@ -77,7 +77,7 @@ typedef struct PCDIMMDeviceClass { * @mr: hotplug memory address space container */ typedef struct MemoryHotplugState { - ram_addr_t base; + hwaddr base; MemoryRegion mr; } MemoryHotplugState; |