From patchwork Thu Dec 21 03:15:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 756930 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp686938wrw; Wed, 20 Dec 2023 19:22:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqWNWVOR1JGWsqNKWBYxIVAkGDqOHfqed2jeDYDhgEwyyeG1OoeUIc7avtmfhH5GtcwhD+ X-Received: by 2002:a05:622a:1ca:b0:427:8aa6:80ec with SMTP id t10-20020a05622a01ca00b004278aa680ecmr2579691qtw.34.1703128963757; Wed, 20 Dec 2023 19:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703128963; cv=none; d=google.com; s=arc-20160816; b=Wy5CEr7vG5Kjh3W5Qqlr/fGh5T2yYfbTeEDOwOa7H3eJxVltH3P8Eg5lWJ9IPUJEew 2wQqN4Na+i8yDjYl939pTePlooNvb3YtZRCywZ0+4uHnBDP5hF7/E/qKJzuogSl+mWJi p+nWpDVOi+KVWf7DpmFmsxf1lNC4Qbskx+QSJmcEcZ45XvUjKXJUV6vPrIaREhZiIzGV bXKz4AqkRqw0yexwuJWrP6/l5gZyeYS8/v/X3mfsd2RV32nfmyUPhlnfUmT30yfjcxp1 yArzGIXK9OQWsf2DOpu2e0fjV0D92UsRuKSMBOVeJNXXl9qmL7vtFz92IQxk7ACyNW4o vzuA== 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=oboVQOi6EvjisHoCt0AjEUt8Log6Mds8YaieNrV812g=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=ZLGvoxDP6sZ5EkGlEPsIT/2sMkXWielDYgl8s7vTF8SDYwW0dV4N1UPhvDnDxwWilT RV35EdPMkGhOKx2qorcZLwv/sqHUxDedALYh5tLSlNVNditNi9O/8EUpbTCfJFzNiy5j Rnhxc/Wjk56iKNWpQ/lRd5+ZwzJM+fAdhQ4vLC5Sv4tZpv8Op0v+M3qMZiAgtUO9xJb/ XDNl51Xv3pc/03gKBXXUOMZHjrhzRixT2lOCQ+JrxwWruC/onrU+KyXlmt1g0P0vVnZm eVOxL8ZkbUyjQ4bdXywzZ84tsu1uK9cnga2ogjn+t1+9LQFzB0o4QGuRXuFQm4wAE2L8 Pi+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XxJu+oNZ; 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 u8-20020a05622a14c800b004236fc110a4si1261125qtx.152.2023.12.20.19.22.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2023 19:22:43 -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=XxJu+oNZ; 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 1rG9Yu-0007IA-SB; Wed, 20 Dec 2023 22:17:28 -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 1rG9Yt-0007I2-NT for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:17:27 -0500 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9Ys-0003hI-CE for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:17:27 -0500 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-7811dba1d5dso18134485a.3 for ; Wed, 20 Dec 2023 19:17:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703128645; x=1703733445; 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=oboVQOi6EvjisHoCt0AjEUt8Log6Mds8YaieNrV812g=; b=XxJu+oNZAbUkj+GwWxAEiIhOvUXXhraxXZ0nrW4vVsOXsqg0QrRcAEHQOE2hH5XJBf ZIu+tT8XCxkWtRLjqbhbJdRjorqmguV8ou0I3SX1uHLZYG9WC2+ZGGQiDPdmBkwyyNwx lXt+3BYfUkiBYxjSUM7vBsFr+U/81QmUrIC4J3Wgh/OubOc5c8uwEcgSNYEiKRdCjY5C b+GxAYOHKnqQVG+u6eC9mo5CI/pUkvkuvteHg3kb/YalQpqZqF4HPAaONMFbyTXNbxdc tiBeRdEkbczWgE2wepa6h/R5o8R65UO/5E4phQYOwcMqpNzqS3+jjhllBs7QvxjSedww onMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703128645; x=1703733445; 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=oboVQOi6EvjisHoCt0AjEUt8Log6Mds8YaieNrV812g=; b=LScCwVo4Ct8VRvNLiLJErEoInQ0auAiYgDhZDye2R0TXBtuQ44PdbybDI/MzNHbVwF tJBKg8OLGyir79EBqH9UCr4K2ZP29nbCnSi6lRfHQK5pahPU2gXKI3BmIfuYrNSVNnzq PIuD1Qdm+JUXcx7aDtJIRTxLAkG5BfkXISxhqXwK7aORzEuNaXFMbA5JVafWJhqiCCXt q9Ks3TRcae+zwASi5NbrkSxY9OiJPQrxHPLJL/PyczcRtRO++ks3e7Ww8w9VCVNrygwB omDG8qLqWtCKEzphB2Cl/hi1DJDLgPmNOLp9tW7MTwGiDNQAXFn1siE4/ZvUiqDEya1Y HFgg== X-Gm-Message-State: AOJu0Yw7sjzx/zpn3QtIvQpz2UWHXwr0b1WipAZdORWR7safZxSLGMDD 5S0f+zxmeILxx2WvNt72B3zzhCwDXTueNvwcmVh7HV8E X-Received: by 2002:a05:620a:1244:b0:77f:3126:c016 with SMTP id a4-20020a05620a124400b0077f3126c016mr23762988qkl.124.1703128645450; Wed, 20 Dec 2023 19:17:25 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id n8-20020a05620a294800b0078116d55191sm360808qkp.130.2023.12.20.19.17.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:17:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 04/71] target/alpha: Constify VMState in machine.c Date: Thu, 21 Dec 2023 14:15:45 +1100 Message-Id: <20231221031652.119827-5-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::72a; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72a.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 --- 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()