]> git.proxmox.com Git - mirror_qemu.git/commitdiff
replay: Constify VMState
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Dec 2023 03:16:49 +0000 (14:16 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Dec 2023 20:38:06 +0000 (07:38 +1100)
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-69-richard.henderson@linaro.org>

replay/replay-snapshot.c

index 10a7cf79927ecbb5dcb5a8d7a51cc6d218c3b1a4..e5e39161e33b55b44c21dd03bd93fee72bb6e944 100644 (file)
@@ -51,7 +51,7 @@ static const VMStateDescription vmstate_replay = {
     .minimum_version_id = 2,
     .pre_save = replay_pre_save,
     .post_load = replay_post_load,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_INT64_ARRAY(cached_clock, ReplayState, REPLAY_CLOCK_COUNT),
         VMSTATE_UINT64(current_icount, ReplayState),
         VMSTATE_INT32(instruction_count, ReplayState),