mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/arm: 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-19-richard.henderson@linaro.org>
This commit is contained in:
parent
dd9729b302
commit
607ef5706c
15 changed files with 45 additions and 45 deletions
|
@ -211,7 +211,7 @@ static const VMStateDescription vmstate_strongarm_pic_regs = {
|
|||
.version_id = 0,
|
||||
.minimum_version_id = 0,
|
||||
.post_load = strongarm_pic_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(pending, StrongARMPICState),
|
||||
VMSTATE_UINT32(enabled, StrongARMPICState),
|
||||
VMSTATE_UINT32(is_fiq, StrongARMPICState),
|
||||
|
@ -439,7 +439,7 @@ static const VMStateDescription vmstate_strongarm_rtc_regs = {
|
|||
.minimum_version_id = 0,
|
||||
.pre_save = strongarm_rtc_pre_save,
|
||||
.post_load = strongarm_rtc_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(rttr, StrongARMRTCState),
|
||||
VMSTATE_UINT32(rtsr, StrongARMRTCState),
|
||||
VMSTATE_UINT32(rtar, StrongARMRTCState),
|
||||
|
@ -677,7 +677,7 @@ static const VMStateDescription vmstate_strongarm_gpio_regs = {
|
|||
.name = "strongarm-gpio",
|
||||
.version_id = 0,
|
||||
.minimum_version_id = 0,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(ilevel, StrongARMGPIOInfo),
|
||||
VMSTATE_UINT32(olevel, StrongARMGPIOInfo),
|
||||
VMSTATE_UINT32(dir, StrongARMGPIOInfo),
|
||||
|
@ -846,7 +846,7 @@ static const VMStateDescription vmstate_strongarm_ppc_regs = {
|
|||
.name = "strongarm-ppc",
|
||||
.version_id = 0,
|
||||
.minimum_version_id = 0,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(ilevel, StrongARMPPCInfo),
|
||||
VMSTATE_UINT32(olevel, StrongARMPPCInfo),
|
||||
VMSTATE_UINT32(dir, StrongARMPPCInfo),
|
||||
|
@ -1300,7 +1300,7 @@ static const VMStateDescription vmstate_strongarm_uart_regs = {
|
|||
.version_id = 0,
|
||||
.minimum_version_id = 0,
|
||||
.post_load = strongarm_uart_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT8(utcr0, StrongARMUARTState),
|
||||
VMSTATE_UINT16(brd, StrongARMUARTState),
|
||||
VMSTATE_UINT8(utcr3, StrongARMUARTState),
|
||||
|
@ -1558,7 +1558,7 @@ static const VMStateDescription vmstate_strongarm_ssp_regs = {
|
|||
.version_id = 0,
|
||||
.minimum_version_id = 0,
|
||||
.post_load = strongarm_ssp_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT16_ARRAY(sscr, StrongARMSSPState, 2),
|
||||
VMSTATE_UINT16(sssr, StrongARMSSPState),
|
||||
VMSTATE_UINT16_ARRAY(rx_fifo, StrongARMSSPState, 8),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue