replay: Constify VMState

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-69-richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2023-12-21 14:16:49 +11:00
parent 72ecb4a96b
commit 440b2174d2

View File

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