mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
hw/ppc: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-48-richard.henderson@linaro.org>
This commit is contained in:
parent
e2bd53a38c
commit
078ddbc936
14 changed files with 38 additions and 38 deletions
|
@ -270,7 +270,7 @@ static const VMStateDescription vmstate_spapr_tce_table_ex = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = spapr_tce_table_ex_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT64(bus_offset, SpaprTceTable),
|
||||
VMSTATE_UINT32(page_shift, SpaprTceTable),
|
||||
VMSTATE_END_OF_LIST()
|
||||
|
@ -283,7 +283,7 @@ static const VMStateDescription vmstate_spapr_tce_table = {
|
|||
.minimum_version_id = 2,
|
||||
.pre_save = spapr_tce_table_pre_save,
|
||||
.post_load = spapr_tce_table_post_load,
|
||||
.fields = (VMStateField []) {
|
||||
.fields = (const VMStateField []) {
|
||||
/* Sanity check */
|
||||
VMSTATE_UINT32_EQUAL(liobn, SpaprTceTable, NULL),
|
||||
|
||||
|
@ -296,7 +296,7 @@ static const VMStateDescription vmstate_spapr_tce_table = {
|
|||
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
.subsections = (const VMStateDescription*[]) {
|
||||
.subsections = (const VMStateDescription * const []) {
|
||||
&vmstate_spapr_tce_table_ex,
|
||||
NULL
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue