[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/71] target/m68k: Constify VMState in machine.c
From: |
Richard Henderson |
Subject: |
[PULL 10/71] target/m68k: Constify VMState in machine.c |
Date: |
Sat, 30 Dec 2023 08:22:45 +1100 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-11-richard.henderson@linaro.org>
---
target/m68k/cpu.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c
index 11c7e0a790..43b1bde21c 100644
--- a/target/m68k/cpu.c
+++ b/target/m68k/cpu.c
@@ -381,7 +381,7 @@ static const VMStateDescription vmstate_freg_tmp = {
.name = "freg_tmp",
.post_load = freg_post_load,
.pre_save = freg_pre_save,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT64(tmp_mant, m68k_FPReg_tmp),
VMSTATE_UINT16(tmp_exp, m68k_FPReg_tmp),
VMSTATE_END_OF_LIST()
@@ -390,7 +390,7 @@ static const VMStateDescription vmstate_freg_tmp = {
static const VMStateDescription vmstate_freg = {
.name = "freg",
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_WITH_TMP(FPReg, m68k_FPReg_tmp, vmstate_freg_tmp),
VMSTATE_END_OF_LIST()
}
@@ -411,7 +411,7 @@ const VMStateDescription vmmstate_fpu = {
.minimum_version_id = 1,
.needed = fpu_needed,
.post_load = fpu_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(env.fpcr, M68kCPU),
VMSTATE_UINT32(env.fpsr, M68kCPU),
VMSTATE_STRUCT_ARRAY(env.fregs, M68kCPU, 8, 0, vmstate_freg, FPReg),
@@ -432,7 +432,7 @@ const VMStateDescription vmstate_cf_spregs = {
.version_id = 1,
.minimum_version_id = 1,
.needed = cf_spregs_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT64_ARRAY(env.macc, M68kCPU, 4),
VMSTATE_UINT32(env.macsr, M68kCPU),
VMSTATE_UINT32(env.mac_mask, M68kCPU),
@@ -454,7 +454,7 @@ const VMStateDescription vmstate_68040_mmu = {
.version_id = 1,
.minimum_version_id = 1,
.needed = cpu_68040_mmu_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(env.mmu.ar, M68kCPU),
VMSTATE_UINT32(env.mmu.ssw, M68kCPU),
VMSTATE_UINT16(env.mmu.tcr, M68kCPU),
@@ -479,7 +479,7 @@ const VMStateDescription vmstate_68040_spregs = {
.version_id = 1,
.minimum_version_id = 1,
.needed = cpu_68040_spregs_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(env.vbr, M68kCPU),
VMSTATE_UINT32(env.cacr, M68kCPU),
VMSTATE_UINT32(env.sfc, M68kCPU),
@@ -492,7 +492,7 @@ static const VMStateDescription vmstate_m68k_cpu = {
.name = "cpu",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32_ARRAY(env.dregs, M68kCPU, 8),
VMSTATE_UINT32_ARRAY(env.aregs, M68kCPU, 8),
VMSTATE_UINT32(env.pc, M68kCPU),
@@ -509,7 +509,7 @@ static const VMStateDescription vmstate_m68k_cpu = {
VMSTATE_INT32(env.pending_level, M68kCPU),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription * []) {
+ .subsections = (const VMStateDescription * const []) {
&vmmstate_fpu,
&vmstate_cf_spregs,
&vmstate_68040_mmu,
--
2.34.1
- [PULL 01/71] migration: Make VMStateDescription.subsections const, (continued)
- [PULL 01/71] migration: Make VMStateDescription.subsections const, Richard Henderson, 2023/12/29
- [PULL 02/71] target/arm: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 03/71] target/arm: Constify hvf/hvf.c, Richard Henderson, 2023/12/29
- [PULL 05/71] target/avr: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 04/71] target/alpha: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 06/71] target/cris: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 09/71] target/loongarch: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 07/71] target/hppa: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 08/71] target/i386: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 11/71] target/microblaze: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 10/71] target/m68k: Constify VMState in machine.c,
Richard Henderson <=
- [PULL 13/71] target/openrisc: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 12/71] target/mips: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 14/71] target/ppc: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 15/71] target/riscv: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 16/71] target/s390x: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 17/71] target/sparc: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 18/71] hw/arm: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 19/71] hw/core: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 20/71] hw/9pfs: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 21/71] hw/acpi: Constify VMState, Richard Henderson, 2023/12/29