mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/timer: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-57-richard.henderson@linaro.org>
This commit is contained in:
parent
0aa6c7df8c
commit
ba324b3fb4
31 changed files with 57 additions and 57 deletions
|
@ -180,7 +180,7 @@ static const VMStateDescription vmstate_pit_channel = {
|
|||
.name = "pit channel",
|
||||
.version_id = 2,
|
||||
.minimum_version_id = 2,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_INT32(count, PITChannelState),
|
||||
VMSTATE_UINT16(latched_count, PITChannelState),
|
||||
VMSTATE_UINT8(count_latched, PITChannelState),
|
||||
|
@ -228,7 +228,7 @@ static const VMStateDescription vmstate_pit_common = {
|
|||
.minimum_version_id = 2,
|
||||
.pre_save = pit_dispatch_pre_save,
|
||||
.post_load = pit_dispatch_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32_V(channels[0].irq_disabled, PITCommonState, 3),
|
||||
VMSTATE_STRUCT_ARRAY(channels, PITCommonState, 3, 2,
|
||||
vmstate_pit_channel, PITChannelState),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue