[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/71] target/m68k: Constify VMState in machine.c
From: |
Richard Henderson |
Subject: |
[PATCH 10/71] target/m68k: Constify VMState in machine.c |
Date: |
Sun, 5 Nov 2023 22:57:26 -0800 |
Signed-off-by: Richard Henderson <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 538d9473c2..63b40de762 100644
--- a/target/m68k/cpu.c
+++ b/target/m68k/cpu.c
@@ -382,7 +382,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()
@@ -391,7 +391,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()
}
@@ -412,7 +412,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),
@@ -433,7 +433,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),
@@ -455,7 +455,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),
@@ -480,7 +480,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),
@@ -493,7 +493,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),
@@ -510,7 +510,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
- [PATCH 08/71] target/i386: Constify VMState in machine.c, (continued)
- [PATCH 08/71] target/i386: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 09/71] target/loongarch: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 06/71] target/cris: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 11/71] target/microblaze: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 12/71] target/mips: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 13/71] target/openrisc: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 14/71] target/ppc: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 16/71] target/s390x: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 10/71] target/m68k: Constify VMState in machine.c,
Richard Henderson <=
- [PATCH 19/71] hw/core: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 21/71] hw/acpi: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 18/71] hw/arm: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 28/71] hw/gpio: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 38/71] hw/loongarch: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 17/71] target/sparc: Constify VMState in machine.c, Richard Henderson, 2023/11/06
- [PATCH 15/71] target/riscv: Constify VMState in machine.c, Richard Henderson, 2023/11/06