mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/core: Constify VMState
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-20-richard.henderson@linaro.org>
This commit is contained in:
parent
607ef5706c
commit
f55f1a4928
3 changed files with 7 additions and 7 deletions
|
@ -41,7 +41,7 @@ const VMStateDescription vmstate_muldiv = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = muldiv_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(multiplier, Clock),
|
||||
VMSTATE_UINT32(divider, Clock),
|
||||
VMSTATE_END_OF_LIST()
|
||||
|
@ -53,11 +53,11 @@ const VMStateDescription vmstate_clock = {
|
|||
.version_id = 0,
|
||||
.minimum_version_id = 0,
|
||||
.pre_load = clock_pre_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT64(period, Clock),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
.subsections = (const VMStateDescription*[]) {
|
||||
.subsections = (const VMStateDescription * const []) {
|
||||
&vmstate_muldiv,
|
||||
NULL
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue