[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 65/71] cpu-target: Constify VMState
From: |
Richard Henderson |
Subject: |
[PATCH 65/71] cpu-target: Constify VMState |
Date: |
Sun, 5 Nov 2023 22:58:21 -0800 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
cpu-target.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cpu-target.c b/cpu-target.c
index 79363ae370..c16b8942d6 100644
--- a/cpu-target.c
+++ b/cpu-target.c
@@ -88,7 +88,7 @@ static const VMStateDescription
vmstate_cpu_common_exception_index = {
.version_id = 1,
.minimum_version_id = 1,
.needed = cpu_common_exception_index_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_INT32(exception_index, CPUState),
VMSTATE_END_OF_LIST()
}
@@ -106,7 +106,7 @@ static const VMStateDescription
vmstate_cpu_common_crash_occurred = {
.version_id = 1,
.minimum_version_id = 1,
.needed = cpu_common_crash_occurred_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_BOOL(crash_occurred, CPUState),
VMSTATE_END_OF_LIST()
}
@@ -118,12 +118,12 @@ const VMStateDescription vmstate_cpu_common = {
.minimum_version_id = 1,
.pre_load = cpu_common_pre_load,
.post_load = cpu_common_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(halted, CPUState),
VMSTATE_UINT32(interrupt_request, CPUState),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription*[]) {
+ .subsections = (const VMStateDescription * const []) {
&vmstate_cpu_common_exception_index,
&vmstate_cpu_common_crash_occurred,
NULL
--
2.34.1
- [PATCH 68/71] replay: Constify VMState, (continued)
- [PATCH 68/71] replay: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 67/71] system: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 56/71] hw/timer: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 54/71] hw/sparc: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 69/71] util/fifo8: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 45/71] hw/pci-bridge: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 58/71] hw/usb: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 63/71] audio: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 65/71] cpu-target: Constify VMState,
Richard Henderson <=
- [PATCH 71/71] docs: Constify VMstate in examples, Richard Henderson, 2023/11/06