Message ID | 20231106065827.543129-7-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp949695wrr; Sun, 5 Nov 2023 23:13:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmG29UcIHpOXGRLTmOvWt+bCIX2zlf71UHe5rvBtQEkffwqvB4vtEjcuBCg5CqSTOEu77m X-Received: by 2002:a05:620a:4787:b0:77a:1c6c:790f with SMTP id dt7-20020a05620a478700b0077a1c6c790fmr24848674qkb.12.1699254797208; Sun, 05 Nov 2023 23:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699254797; cv=none; d=google.com; s=arc-20160816; b=gUSr2x5LpnsKzluwFHcj7dW+bX6Fdku5TKoVR2DdOki5bHE0nTJB1WPM8lAKBxszYX rXLwAyWHuL4AuoDt4nU0wrAbQI7vFTlHOPlTc5c9+8o8l4D6epDRpfHH3xuJVVk7lqiY xpYRsoovoxM3YxEJKBlmQgzvxohe9RInWUbEWNBiiC6rBd3g8MHqLxpRCfC8JdphRvky Q9p1feC8hG1DMLamDu0BTy6js38CWJboI4h3yHR8YGNl1YrfYtrXqtxXD6UVrTn4TRsn amkopwFo500Ew9PLSzV2XUOXbXMHI2KcPUAucVKqTM4hrVauTFVLOxU57Vu+XJ5pOIFn uRtA== 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:cc:to :from:dkim-signature; bh=Zm1Pc5wJxkaNSpGGoncfVHQXzuhJXGIo2lnnoud0ql8=; fh=U+hGNjcWZPeyLe2bTdTFM68h7FRptferheHiMMFpeys=; b=harmxc/7SuLSiXAShvUhkhOpN/sx4zLiMOF/HzcgdCDTg4Dw+IfJu83ENfAGoGGVTA mLOb45KshEap+98ADLxxj3nAqOHgQfL4LmRWIWoiVCWpdzBp/GXbYE5BTo8lYwcyo52r JBpmsSFF7sWC9PClAFlNskMA+yIOcvYCZVBW6pRfP6I/K1CroJINQe9ShUv50IJDC42s kRhF2pB2FdLLqHRIlOxBDedbOlZeXqBMKbWyjbW1cJwHL5j10cevEY8qb57TXcLJLPV1 4QxHtiKBoElWyNAmM8kq+LlNBwJsth5VNlww1qQdtaLi0eXVobt4jD2Kc2UVZT0lD0+M rNbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I0xcQxou; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t20-20020a05620a451400b007759a30f473si5773008qkp.60.2023.11.05.23.13.17 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2023 23:13:17 -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=I0xcQxou; 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 <qemu-devel-bounces@nongnu.org>) id 1qztZN-0004U9-9m; Mon, 06 Nov 2023 01:58:45 -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 <richard.henderson@linaro.org>) id 1qztZF-0004PX-6u for qemu-devel@nongnu.org; Mon, 06 Nov 2023 01:58:37 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1qztZD-0001NB-OS for qemu-devel@nongnu.org; Mon, 06 Nov 2023 01:58:36 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1cc7077d34aso29645015ad.2 for <qemu-devel@nongnu.org>; Sun, 05 Nov 2023 22:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699253914; x=1699858714; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Zm1Pc5wJxkaNSpGGoncfVHQXzuhJXGIo2lnnoud0ql8=; b=I0xcQxou3sHalPm3+QoW6rZSCNryB7IY7k8bXw7qNNRmdgCtxwJTOCymfYHorP9DRc 51y/TwZL4SACVHeBg4SCCI19dIdaKvbV+Al3Si2x/kzhpBGVGcWtc4bJ/P2o/vwjA8Ii lS45KIpCyBduPtTnIDTlZGeWvnemB/0u4rkXUxpCM4MWh7TTcDdpKbU+c1boHxRbHCJK m5tjLJS8OqTRHYqn1bXnVFEwC7IyrHB4YyL6inR5TTpmKBhsaV55CZmnZgxssA6Gw+zS gQJkXqFSSFtBNWDLG+npfu9fIlQAR/Lsg419npmDEqeL2Zx4aq6hKK66aBBnn+LyO1J9 vQQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699253914; x=1699858714; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Zm1Pc5wJxkaNSpGGoncfVHQXzuhJXGIo2lnnoud0ql8=; b=OE2b+MnYPmj7h4qvsIW05FF1ZBTOSyJ/YccaZOCBffDxa9FPjbdr/T0Fi79o2bmZG0 SOZMFtq7bo4FOok+Sw3lL8+ut5OsHhhiJcKGEtc5cYeC3pdXbFvsDPpfty+XsoTo49Ea 80FW4nsIChN4pOncJxYYhkKaxbyKMTGGEaxNXboZFmIwUM7C8Nhqab/LPH21N4TOzU3e HsP8SgINRcASztaEabaaecE2/UdrZ03ZNcugo4tPf+hvCcfmXj6+3yxLDFWN8ex7uOSe q8xwNO62nIlJiOX188jQncuk5TmYEAPdfV/0B01YhZlt5sk9vDcyax7ucHzT0dizc7Hu 1Mnw== X-Gm-Message-State: AOJu0YzYUnAnA9ADeg1qQAJU5yjcWqHyVG6TueUz5/OFVGVR9JT7tYM9 MZ48bOgYHSwc1/B++PAWRDneutlS4nOr2o1hSRw= X-Received: by 2002:a17:902:ea10:b0:1cc:56b3:efc5 with SMTP id s16-20020a170902ea1000b001cc56b3efc5mr19367152plg.21.1699253914123; Sun, 05 Nov 2023 22:58:34 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id c3-20020a170902d48300b001c62e3e1286sm5167130plg.166.2023.11.05.22.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:58:33 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: quintela@redhat.com, peterx@redhat.com, farosas@suse.de, leobras@redhat.com Subject: [PATCH 06/71] target/cris: Constify VMState in machine.c Date: Sun, 5 Nov 2023 22:57:22 -0800 Message-Id: <20231106065827.543129-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106065827.543129-1-richard.henderson@linaro.org> References: <20231106065827.543129-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
*: Constify VMState
|
expand
|
On 6/11/23 07:57, Richard Henderson wrote: > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/cris/machine.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/target/cris/machine.c b/target/cris/machine.c index f370f33486..7b9bde872a 100644 --- a/target/cris/machine.c +++ b/target/cris/machine.c @@ -26,7 +26,7 @@ static const VMStateDescription vmstate_tlbset = { .name = "cpu/tlbset", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32(lo, TLBSet), VMSTATE_UINT32(hi, TLBSet), VMSTATE_END_OF_LIST() @@ -37,7 +37,7 @@ static const VMStateDescription vmstate_cris_env = { .name = "env", .version_id = 2, .minimum_version_id = 2, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32_ARRAY(regs, CPUCRISState, 16), VMSTATE_UINT32_ARRAY(pregs, CPUCRISState, 16), VMSTATE_UINT32(pc, CPUCRISState), @@ -85,7 +85,7 @@ const VMStateDescription vmstate_cris_cpu = { .name = "cpu", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_CPU(), VMSTATE_STRUCT(env, CRISCPU, 1, vmstate_cris_env, CPUCRISState), VMSTATE_END_OF_LIST()
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/cris/machine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)