From: Richard Henderson Date: Thu, 21 Dec 2023 03:16:49 +0000 (+1100) Subject: replay: Constify VMState X-Git-Tag: v9.0.0-rc0~126^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=440b2174d2b934a5c048b885236a03f4381b9313;p=thirdparty%2Fqemu.git replay: Constify VMState Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-69-richard.henderson@linaro.org> --- diff --git a/replay/replay-snapshot.c b/replay/replay-snapshot.c index 10a7cf79927..e5e39161e33 100644 --- a/replay/replay-snapshot.c +++ b/replay/replay-snapshot.c @@ -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),