hw/mem: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
55f579773e
commit
f4f2248bbc
@ -1216,7 +1216,7 @@ static void ct3d_reset(DeviceState *dev)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property ct3_props[] = {
|
static const Property ct3_props[] = {
|
||||||
DEFINE_PROP_LINK("memdev", CXLType3Dev, hostmem, TYPE_MEMORY_BACKEND,
|
DEFINE_PROP_LINK("memdev", CXLType3Dev, hostmem, TYPE_MEMORY_BACKEND,
|
||||||
HostMemoryBackend *), /* for backward compatibility */
|
HostMemoryBackend *), /* for backward compatibility */
|
||||||
DEFINE_PROP_LINK("persistent-memdev", CXLType3Dev, hostpmem,
|
DEFINE_PROP_LINK("persistent-memdev", CXLType3Dev, hostpmem,
|
||||||
|
@ -246,7 +246,7 @@ static void nvdimm_write_label_data(NVDIMMDevice *nvdimm, const void *buf,
|
|||||||
memory_region_set_dirty(mr, backend_offset, size);
|
memory_region_set_dirty(mr, backend_offset, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property nvdimm_properties[] = {
|
static const Property nvdimm_properties[] = {
|
||||||
DEFINE_PROP_BOOL(NVDIMM_UNARMED_PROP, NVDIMMDevice, unarmed, false),
|
DEFINE_PROP_BOOL(NVDIMM_UNARMED_PROP, NVDIMMDevice, unarmed, false),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
};
|
};
|
||||||
|
@ -150,7 +150,7 @@ out:
|
|||||||
return slot;
|
return slot;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property pc_dimm_properties[] = {
|
static const Property pc_dimm_properties[] = {
|
||||||
DEFINE_PROP_UINT64(PC_DIMM_ADDR_PROP, PCDIMMDevice, addr, 0),
|
DEFINE_PROP_UINT64(PC_DIMM_ADDR_PROP, PCDIMMDevice, addr, 0),
|
||||||
DEFINE_PROP_UINT32(PC_DIMM_NODE_PROP, PCDIMMDevice, node, 0),
|
DEFINE_PROP_UINT32(PC_DIMM_NODE_PROP, PCDIMMDevice, node, 0),
|
||||||
DEFINE_PROP_INT32(PC_DIMM_SLOT_PROP, PCDIMMDevice, slot,
|
DEFINE_PROP_INT32(PC_DIMM_SLOT_PROP, PCDIMMDevice, slot,
|
||||||
|
@ -96,7 +96,7 @@ static const MemoryRegionOps sparse_mem_ops = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static Property sparse_mem_properties[] = {
|
static const Property sparse_mem_properties[] = {
|
||||||
/* The base address of the memory */
|
/* The base address of the memory */
|
||||||
DEFINE_PROP_UINT64("baseaddr", SparseMemState, baseaddr, 0x0),
|
DEFINE_PROP_UINT64("baseaddr", SparseMemState, baseaddr, 0x0),
|
||||||
/* The length of the sparse memory region */
|
/* The length of the sparse memory region */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user