From patchwork Fri Dec 29 21:22:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 758794 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp4670870wrw; Fri, 29 Dec 2023 13:25:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBzEP3dhepL/L9amGnn6C2f/8u2NnlOgM3gSn6QkRHy+uSWw8h7CuNSoWiJ4of5DOzhqZN X-Received: by 2002:a05:6214:e47:b0:67f:e29:d4f4 with SMTP id o7-20020a0562140e4700b0067f0e29d4f4mr13245724qvc.14.1703885144766; Fri, 29 Dec 2023 13:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703885144; cv=none; d=google.com; s=arc-20160816; b=Qlae+9TvQIhK0fIw0fzcU0UpcTaV22CFLw3RT1q3huZHSm9d7pdvwoJsOhkXNaQtcT VjFwFmkXLLOGb3VtVes8Hvfr6ZNmsEslAGqCSRFeyHd1pkykPYjPcBMySyQrgBIGQkrT 8kW0UNw8Fl/9lMRKS13eWF1XsVwWoWu2iszgoaJQVKU18p3TSGR438bUgakPOWjZdHTe vHaVg7DTj2SmhDRIOaBK/rfxdkIW+fXWNwV1zXrU15MTnjjJyqsELnsAmgvCDejkd2yD V9tKRU59w4E9Rm+b1A00DHiXzbJjk45aaD5E2rSsjjqCTjP7sPNtHDRfKoQQrOyIyhLP 54uw== 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=Te0syHdSvAn6waobc73q7nKB4LmwnyEhA4q5YcHJ4/8=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=RlUZAzK/fDHrXwYJoSgshUjmAUBHX4Vtxn3AObqejkB+IEvcMDCJHc1yTThXG4TyfB hSRu+5ZkSRsMDvyeKNvxFy8o0lZ0aLM3XkEzhb6KKvvkDe8aKVw6Hua7PDS/Sj47q9ON tspJ2MKpI+DXSa4C6ohtRLegkq4Pv/OxxaqwpXs6y5y9aHAQG0QAKaIkuupWOpdK9I9w fGJXoaZnz+dz1tKOCRUIT4efMslsE7lRNKBEA1294JqHmydKsTJMZfd67jAGshV6TRlV tSPHNKtw4TLfwmc0M53eVOJnm9saN/WpPv6g7PYETWnjDdvGaX9uI0OveGJNksUASEIo WRyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aD8hvsou; 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 d27-20020a0cb2db000000b0067f70fc7fcdsi19380712qvf.405.2023.12.29.13.25.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Dec 2023 13:25:44 -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=aD8hvsou; 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 1rJKL2-0006sD-Bn; Fri, 29 Dec 2023 16:24:18 -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 1rJKKx-0006ra-Cu for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:12 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKKr-0005xb-JX for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:11 -0500 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1d427518d52so36463235ad.0 for ; Fri, 29 Dec 2023 13:24:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885044; x=1704489844; 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=Te0syHdSvAn6waobc73q7nKB4LmwnyEhA4q5YcHJ4/8=; b=aD8hvsouABLKVV6O/R2AKm5vkOgfkF8Li1w2M6ljeRx5JKirpvohG7Yhe9N1I1WxjT iTOGqM+2ivWxwimsPyOz03knSRMSEtiVqKq8aEVz7Cbb1V4lqt8kybbpczQ4Qi8SN+TA 05GOf+jDE5SvYT+PMgNnCxCZPYLH5TlOYw9yy91camh6OgqARiNNd+ig+jH6T7LUtQAm RZ/+BkLr/gAO3IhxQ7pxVIEbBlPW7YZy1TeHcvDvg2NzoL84te/w+q0GXbk6t16hVls8 ZnAb3xXAp/u8sp4a5+osdzoBJUm9SZlV1QpGh++moYwRWDp/4ZvoITfrTPL8IG5lkE3T 1ymg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885044; x=1704489844; 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=Te0syHdSvAn6waobc73q7nKB4LmwnyEhA4q5YcHJ4/8=; b=C2QnB+9BFCwVXDjuLiwBmJ58JtkbMJKQUZOGnN37Hls0luGwbNCPHVpGrG6/2RIMzT oCZTvwVsLullpbq9vZSquuwNmtScaP0ExoflKNBsD6UllS2AFqqWI0TNkO9LOj0iM3Wr Z0H9EqNNPQ7GOC5S+DgFQc6O75XMSettVZkf00EiMhVy2zHVTyDkuPY6PiRACAAMVTgB +CQXTQvORWPy9ZK9I5FNaWHi1eVGYgKo2pn5njTiFfVWaQgqKcwPd9Oxq2jAF+iwxj9t jqzg1MQ1MxSAJ0e3ZEB8ni5AcqeuYs4kzVhrcRU7qxb6voiRYZND4Qls6dc93/0HyNBQ ojBA== X-Gm-Message-State: AOJu0YwNIql8mlT0ldv89aesSbOQSGybofW7N4xtaVzN+IUQIqD1zOlE L4pYqr2LVUjpCiaT0lRuK0Jj1sBfAT/tPsA3EEzsFsPbcA/HHA== X-Received: by 2002:a17:902:74c4:b0:1d3:bceb:ba62 with SMTP id f4-20020a17090274c400b001d3bcebba62mr15614893plt.45.1703885043950; Fri, 29 Dec 2023 13:24:03 -0800 (PST) Received: from stoup.lan (203-217-28-32.perm.iinet.net.au. [203.217.28.32]) by smtp.gmail.com with ESMTPSA id a34-20020a631a22000000b005c65e82a0cbsm15016237pga.17.2023.12.29.13.24.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:24:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 04/71] target/alpha: Constify VMState in machine.c Date: Sat, 30 Dec 2023 08:22:39 +1100 Message-Id: <20231229212346.147149-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231229212346.147149-1-richard.henderson@linaro.org> References: <20231229212346.147149-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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 Message-Id: <20231221031652.119827-5-richard.henderson@linaro.org> --- target/alpha/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/alpha/machine.c b/target/alpha/machine.c index 2b7c8148ff..f09834f635 100644 --- a/target/alpha/machine.c +++ b/target/alpha/machine.c @@ -24,7 +24,7 @@ static const VMStateInfo vmstate_fpcr = { .put = put_fpcr, }; -static VMStateField vmstate_env_fields[] = { +static const VMStateField vmstate_env_fields[] = { VMSTATE_UINTTL_ARRAY(ir, CPUAlphaState, 31), VMSTATE_UINTTL_ARRAY(fir, CPUAlphaState, 31), /* Save the architecture value of the fpcr, not the internally @@ -73,7 +73,7 @@ static const VMStateDescription vmstate_env = { .fields = vmstate_env_fields, }; -static VMStateField vmstate_cpu_fields[] = { +static const VMStateField vmstate_cpu_fields[] = { VMSTATE_CPU(), VMSTATE_STRUCT(env, AlphaCPU, 1, vmstate_env, CPUAlphaState), VMSTATE_END_OF_LIST()