mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
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 <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Igor Mammedov <[email protected]> Acked-by: Eduardo Habkost <[email protected]>
This commit is contained in:
1 parent
ae12374951
commit
adcb4ee660
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user