From patchwork Thu Dec 21 03:16:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 756971 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp687857wrw; Wed, 20 Dec 2023 19:26:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgM+eEQBXo7W5R5pUCtwixizzwS54N/kCgf7KK1oOvHY4IQJElmrceD1HuVvJJ3sjDZiZg X-Received: by 2002:a05:622a:1:b0:427:7254:a028 with SMTP id x1-20020a05622a000100b004277254a028mr5356652qtw.110.1703129172305; Wed, 20 Dec 2023 19:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703129172; cv=none; d=google.com; s=arc-20160816; b=aaWfuRj3iyCZRpfDe62qHRqFurECTtcM80WjItnKt+kjTr9uQ09Q8bGnNe54LjIRXV GM3L9BZr/xya3ifmsBEpbcfHO0eZVh4RF/wBGoY/Lx8WcO9G7k9wIWRalFAQzNmsEnXe ZJ0D6+uIcdHyL5RV9uDmp/y6XV2Co6Nz3e/beLE8tqJzm54yQbN0LoQZZ6oyRgCobzQs RqfCSLDMqc1w89+8KvaWbL1HQ9+/GgF1ZjQvYRs9lsw19F6GNQhT1cYdbp0IM1Mk01az xHdWljKmUBckFVlUlKIooesXz9YUpGnWN4O+01581Sewa0gELcVgOzP5QGgyY98k6c7j yiIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=W7VJPAoa0z4xCQmXZrm1hRkX2bwGlhHw1y5NMWV4Vs8=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=M4vmTmcrUThkjYC1Nt0Q5q9hGJ3a3QtzVFlyFTH8GcLgxb7Ot2v9Q4rzfBfEOPZ1fW bp4FtUT9X4YN1pD+tt20QsdJUFVitIre14fF7p9uMf7YlFcmKb3NOi+52n7nt2maQ++S iKkj9mogDBlB/7s8KCK36pW6jx6zuOGw9KUES/lv405xgul14u4bng/7gXR2rCc69Wj0 sJRvMUv8VVik7rOJXzLxcJzVSx9xZMYDrga8wbe1NstHvngl4gxBvoBD0x/exVkdoUAJ Gqt1Q1AV0Y51yVB4abrewfSB8+QXKHP+JZk4bYAGaf3BkDyXaPvVrl5yCmMEPgkKu9vU TFxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cPrpH2bd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o7-20020a05622a044700b0042783779803si1200126qtx.441.2023.12.20.19.26.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2023 19:26:12 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cPrpH2bd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rG9g1-0004Ee-3a; Wed, 20 Dec 2023 22:24:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rG9fz-00047i-Gw for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:24:47 -0500 Received: from mail-qv1-xf33.google.com ([2607:f8b0:4864:20::f33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9fv-00011N-AR for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:24:47 -0500 Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-67f7bd86cafso2323946d6.0 for ; Wed, 20 Dec 2023 19:24:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703129082; x=1703733882; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=W7VJPAoa0z4xCQmXZrm1hRkX2bwGlhHw1y5NMWV4Vs8=; b=cPrpH2bdivVsyItrR328Egv/5sDK4789drVwQ6IU48W3O4hiKalUKIh2VrNyaezoPK vM3AKclW8tzpP8A/Md3IqVRJnLcaYCfEvoayV14RJhFAigE2utTM6ON0KFN49nJpz0AF QDwEw1m6tLAt/UHE3w2zDK2sezY4oW2ojdXpxhe62IrA+23GG3nGNRC8gjNJehXfmWju JAzdc6ElHQcgUIS2sImkiWp+nLYVFRtJdJ1BqafLUPr9+BkkxCjwaNC9uL9pvGP32g06 3lLEEpmMkJgcvyE1vNxFIFpVu47AN+rlh2w/mN7O3Qjj5v90viNwiBPzvL4U3JfOV9k5 ydMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703129082; x=1703733882; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W7VJPAoa0z4xCQmXZrm1hRkX2bwGlhHw1y5NMWV4Vs8=; b=tDQlQPyIPd3+9eik/EGHl0Z3HKGgqC9IYHp4Aamm3a7SL7GPE/G0+q2/37hB3PJfvU kvdGvV/kSZkZu4XQjy22jAsfDXbY2lquUj2tnrh/QkPAo9IpWQZgQF3HgqYPuHY29ppN XnKEwEdZsQ/5OGsscIEj9e/9h0uWCLPncUGIZBbxyswf4SXWdcArkq5HXzVwbdG3Evyx 95d/Kz/3ecG4ijzWV1662SNXcK49qSiZ2te7nYr9br+/iOR/DPYLlCek6wS7dkWJEYpN kuQA+xBK2a2JREb2/Iz+e4aw7jXZ7GWwd4nabXC4U0KSPV74vlP5+LMh4x9ID1ogABWV TLLQ== X-Gm-Message-State: AOJu0YxfyGI0e749AU0iq8i2Xsf0kcbYVKlszXUyn92iF/T01ATE/Tqf fys6+ge2RsrQfezc/k9wra5SmYWmmBdSTvllVTV+4mVY X-Received: by 2002:a05:6214:c6b:b0:67f:1bff:ed34 with SMTP id t11-20020a0562140c6b00b0067f1bffed34mr13090787qvj.129.1703129082322; Wed, 20 Dec 2023 19:24:42 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id l16-20020ad44d10000000b0067f7b6318b9sm347257qvl.10.2023.12.20.19.24.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:24:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 68/71] replay: Constify VMState Date: Thu, 21 Dec 2023 14:16:49 +1100 Message-Id: <20231221031652.119827-69-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231221031652.119827-1-richard.henderson@linaro.org> References: <20231221031652.119827-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::f33; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf33.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- replay/replay-snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replay/replay-snapshot.c b/replay/replay-snapshot.c index 10a7cf7992..e5e39161e3 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),