[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/71] target/loongarch: Constify VMState in machine.c
From: |
Richard Henderson |
Subject: |
[PULL 09/71] target/loongarch: Constify VMState in machine.c |
Date: |
Sat, 30 Dec 2023 08:22:44 +1100 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20231221031652.119827-10-richard.henderson@linaro.org>
---
target/loongarch/machine.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/target/loongarch/machine.c b/target/loongarch/machine.c
index 1c4e01d076..c7029fb9b4 100644
--- a/target/loongarch/machine.c
+++ b/target/loongarch/machine.c
@@ -14,7 +14,7 @@ static const VMStateDescription vmstate_fpu_reg = {
.name = "fpu_reg",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT64(UD(0), VReg),
VMSTATE_END_OF_LIST()
}
@@ -36,7 +36,7 @@ static const VMStateDescription vmstate_fpu = {
.version_id = 1,
.minimum_version_id = 1,
.needed = fpu_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_FPU_REGS(env.fpr, LoongArchCPU, 0),
VMSTATE_UINT32(env.fcsr0, LoongArchCPU),
VMSTATE_BOOL_ARRAY(env.cf, LoongArchCPU, 8),
@@ -48,7 +48,7 @@ static const VMStateDescription vmstate_lsxh_reg = {
.name = "lsxh_reg",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT64(UD(1), VReg),
VMSTATE_END_OF_LIST()
}
@@ -70,7 +70,7 @@ static const VMStateDescription vmstate_lsx = {
.version_id = 1,
.minimum_version_id = 1,
.needed = lsx_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_LSXH_REGS(env.fpr, LoongArchCPU, 0),
VMSTATE_END_OF_LIST()
},
@@ -80,7 +80,7 @@ static const VMStateDescription vmstate_lasxh_reg = {
.name = "lasxh_reg",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT64(UD(2), VReg),
VMSTATE_UINT64(UD(3), VReg),
VMSTATE_END_OF_LIST()
@@ -103,7 +103,7 @@ static const VMStateDescription vmstate_lasx = {
.version_id = 1,
.minimum_version_id = 1,
.needed = lasx_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_LASXH_REGS(env.fpr, LoongArchCPU, 0),
VMSTATE_END_OF_LIST()
},
@@ -114,7 +114,7 @@ const VMStateDescription vmstate_tlb = {
.name = "cpu/tlb",
.version_id = 0,
.minimum_version_id = 0,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT64(tlb_misc, LoongArchTLB),
VMSTATE_UINT64(tlb_entry0, LoongArchTLB),
VMSTATE_UINT64(tlb_entry1, LoongArchTLB),
@@ -127,7 +127,7 @@ const VMStateDescription vmstate_loongarch_cpu = {
.name = "cpu",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINTTL_ARRAY(env.gpr, LoongArchCPU, 32),
VMSTATE_UINTTL(env.pc, LoongArchCPU),
@@ -193,7 +193,7 @@ const VMStateDescription vmstate_loongarch_cpu = {
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription*[]) {
+ .subsections = (const VMStateDescription * const []) {
&vmstate_fpu,
&vmstate_lsx,
&vmstate_lasx,
--
2.34.1
- [PULL 00/71] Constify VMState, Richard Henderson, 2023/12/29
- [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 <=
- [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, 2023/12/29
- [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