From nobody Tue Nov 26 22:16:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1703885146; cv=none; d=zohomail.com; s=zohoarc; b=gfUPxgX7o1FiLYYpVAAZKuWvvxjQsw/Qkaly/AAGoAEsf8MjRVLS6B7AIQqdoF2d+VpHuS/7sY6rpwE7mFVr7vmDry/pMjQ2shnArRPpu0j5Qa+oegnTVRTGFMc1ZCwQIcTee+LdLAn7WY8cSNwnCXtziaoPCkWCZ2JNB0f6IzQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703885146; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=D1wtmagA20UyDQGh/RhpJV+m3qRJC3+9KhhosTNeN7E=; b=IQBRMsUh8l5rnrXMowFR154kp9+uBTojgX5GdF9MOuIDJEwAjXewvXOmNaxiyH9CyDE6l1F7cpkoXmAXf0YNLMFE5PNsrFh+C3O51ZjWeba8+U8LRGdT0QvHWoZV1mHEe4LesyGX5cX5zz22KztB77rjJ9ljg76od0M8ZFC+ERY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1703885146189909.8475027936408; Fri, 29 Dec 2023 13:25:46 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKLF-0006xz-HE; Fri, 29 Dec 2023 16:24:29 -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 1rJKLE-0006xo-An for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:28 -0500 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKLC-0006de-Rw for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:28 -0500 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6dc02ab3cc9so1977064a34.3 for ; Fri, 29 Dec 2023 13:24:25 -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.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885065; x=1704489865; 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=D1wtmagA20UyDQGh/RhpJV+m3qRJC3+9KhhosTNeN7E=; b=PPxxqXkbIqfCNQ0ji9JmuN5itT9f5q1QVh1EOWls28yz/qQiH0WsAdjIoICaTYMD19 LqUsnM6quF+Z3jpGGcreJz43nzS+UVmTdBx4T9FuohZ46cXddVFv7voLgz102rP6UPUw y3JD2PbGAa3RALuH2sIASauhrZK7etEHbD9B7BRXHG8mf4KvmbJ7MdcHk+CVFMWyKXok 8zaU5cC8nRsnkIwJ1zTPEY2ReY67Am5zX037mzy0p51J6/Q650T3DpJbYQK+rV6mjF6i N0dxamnGwjAQbye6hOJnX/0h1G8BKFsu+oWKNn0CUqVAdawnxfCo+3d84m8oi7YLGqZz t0kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885065; x=1704489865; 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=D1wtmagA20UyDQGh/RhpJV+m3qRJC3+9KhhosTNeN7E=; b=LgHO6RBIg0dE97gWyx+ozGYcxQHsfxS5lvx1t9zllR58gGJfOvi9ONzsDH+cWfMx15 Mq4Ts4U/tGzdxYlhUFcpSglh9P1Y9tVQWsVCYsZ0YDECoQFTkdjh87cjMJdTMpB4CbvR QORC/avbTq90JuoK6ZIe6rHuzx0OU/46jaHSCQG4Yo1rNDdxBlrIRkopBak2P1kFcRxz CTN8DDZjntz911izoP/su035q/GsAGq8VsyN8z7ilsp8dmGODUAQ7mxDfyhlEATFw3as 9fde/5n9XUpaT30Y/RBTZ2/E3IqGEcu6VpqNTCm9rVlEEyCsS4yWF/lpxfaQo2XnJ2OI AvKQ== X-Gm-Message-State: AOJu0YzNf4U6NzDit/lf7tNiCY1nhQdISzpu3Nr8Y77/jJ+iVueUJ/jZ t+v1uyo5PwpDrzKXOh1SgvzN3vcQPOVBYPmPy1EgVU3h21QjLQ== X-Google-Smtp-Source: AGHT+IEIJ3MwtCVjRM1LMCcGrk5rwap8SL5TyNlerqDGqzC0bzeWf1bpmlPlELilKAUg0IJTKncclg== X-Received: by 2002:a9d:7c88:0:b0:6d8:74e2:c09a with SMTP id q8-20020a9d7c88000000b006d874e2c09amr11349202otn.76.1703885064991; Fri, 29 Dec 2023 13:24:24 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 13/71] target/openrisc: Constify VMState in machine.c Date: Sat, 30 Dec 2023 08:22:48 +1100 Message-Id: <20231229212346.147149-14-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 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::32a; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32a.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1703885147774100007 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-14-richard.henderson@linaro.org> --- target/openrisc/machine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/openrisc/machine.c b/target/openrisc/machine.c index b7d7388640..3574e571cb 100644 --- a/target/openrisc/machine.c +++ b/target/openrisc/machine.c @@ -25,7 +25,7 @@ static const VMStateDescription vmstate_tlb_entry =3D { .name =3D "tlb_entry", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINTTL(mr, OpenRISCTLBEntry), VMSTATE_UINTTL(tr, OpenRISCTLBEntry), VMSTATE_END_OF_LIST() @@ -36,7 +36,7 @@ static const VMStateDescription vmstate_cpu_tlb =3D { .name =3D "cpu_tlb", .version_id =3D 2, .minimum_version_id =3D 2, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_STRUCT_ARRAY(itlb, CPUOpenRISCTLBContext, TLB_SIZE, 0, vmstate_tlb_entry, OpenRISCTLBEntry), VMSTATE_STRUCT_ARRAY(dtlb, CPUOpenRISCTLBContext, TLB_SIZE, 0, @@ -71,7 +71,7 @@ static const VMStateDescription vmstate_env =3D { .name =3D "env", .version_id =3D 6, .minimum_version_id =3D 6, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINTTL_2DARRAY(shadow_gpr, CPUOpenRISCState, 16, 32), VMSTATE_UINTTL(pc, CPUOpenRISCState), VMSTATE_UINTTL(ppc, CPUOpenRISCState), @@ -135,7 +135,7 @@ const VMStateDescription vmstate_openrisc_cpu =3D { .version_id =3D 1, .minimum_version_id =3D 1, .post_load =3D cpu_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_CPU(), VMSTATE_STRUCT(env, OpenRISCCPU, 1, vmstate_env, CPUOpenRISCState), VMSTATE_END_OF_LIST() --=20 2.34.1