mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/isa: Constify VMState
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-38-richard.henderson@linaro.org>
This commit is contained in:
parent
09c6ac6d8f
commit
cbf195061c
6 changed files with 13 additions and 13 deletions
|
@ -768,7 +768,7 @@ static const VMStateDescription vmstate_ich9_rst_cnt = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = ich9_rst_cnt_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT8(rst_cnt, ICH9LPCState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
|
@ -788,7 +788,7 @@ static const VMStateDescription vmstate_ich9_smi_feat = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = ich9_smi_feat_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT8_ARRAY(smi_guest_features_le, ICH9LPCState,
|
||||
sizeof(uint64_t)),
|
||||
VMSTATE_UINT8(smi_features_ok, ICH9LPCState),
|
||||
|
@ -802,7 +802,7 @@ static const VMStateDescription vmstate_ich9_lpc = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.post_load = ich9_lpc_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_PCI_DEVICE(d, ICH9LPCState),
|
||||
VMSTATE_STRUCT(apm, ICH9LPCState, 0, vmstate_apm, APMState),
|
||||
VMSTATE_STRUCT(pm, ICH9LPCState, 0, vmstate_ich9_pm, ICH9LPCPMRegs),
|
||||
|
@ -810,7 +810,7 @@ static const VMStateDescription vmstate_ich9_lpc = {
|
|||
VMSTATE_UINT32(sci_level, ICH9LPCState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
.subsections = (const VMStateDescription*[]) {
|
||||
.subsections = (const VMStateDescription * const []) {
|
||||
&vmstate_ich9_rst_cnt,
|
||||
&vmstate_ich9_smi_feat,
|
||||
NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue