[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 09/71] target/loongarch: Constify VMState in machine.c
From: |
Richard Henderson |
Subject: |
[PATCH v2 09/71] target/loongarch: Constify VMState in machine.c |
Date: |
Thu, 21 Dec 2023 14:15:50 +1100 |
Signed-off-by: Richard Henderson <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
- [PATCH v2 00/71] *: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 01/71] migration: Make VMStateDescription.subsections const, Richard Henderson, 2023/12/20
- [PATCH v2 02/71] target/arm: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 03/71] target/arm: Constify hvf/hvf.c, Richard Henderson, 2023/12/20
- [PATCH v2 04/71] target/alpha: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 05/71] target/avr: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 06/71] target/cris: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 07/71] target/hppa: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 08/71] target/i386: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 09/71] target/loongarch: Constify VMState in machine.c,
Richard Henderson <=
- [PATCH v2 10/71] target/m68k: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 11/71] target/microblaze: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 12/71] target/mips: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 13/71] target/openrisc: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 14/71] target/ppc: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 15/71] target/riscv: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 16/71] target/s390x: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 17/71] target/sparc: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 18/71] hw/arm: Constify VMState, Richard Henderson, 2023/12/20