From nobody Tue Nov 26 22:18:29 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=1703885114; cv=none; d=zohomail.com; s=zohoarc; b=XJvzPFuWcJRAFkimyHpVB5QDjNHACdrvEITyYLqkoH6AGkjYh0zj8bdPrG6+cfiECjAPZGThJD5r/g7HCs7kCMPckHN/2/dARTGcFM0dlSmYLOWxO6fvhk4DTzhAzkSNrfn40budgzNg0bU9Z0ObyNFQa15WyEyhpzfXqAvppcs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703885114; h=Content-Transfer-Encoding:Cc:Cc: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; bh=QMN6P6UkRFuIZLQOv+2lhjHpbohYNcYTosCGWfaizOs=; b=k9ZW//BW05svexnT1YAVmwYTZ6Sm9+jdEfjPlOlPZR6I0hf9VP821x2aXwfmcdfI8lSgTAbFiR48ScdXzEYxFOV/i6J1+y8r8a4VDN+kVDeEDwxW/2MPgnpMxcRhEOc5QSyhn//TyvDlMzCAFwaBUubc1vFAgMiIFMwGKEzCNgI= 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 1703885114568474.11865231602656; Fri, 29 Dec 2023 13:25:14 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKL9-0006vl-Ub; Fri, 29 Dec 2023 16:24:23 -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 1rJKL4-0006uc-NF for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:20 -0500 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKL3-0006S4-4q for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:18 -0500 Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-35feb61c91fso23479935ab.3 for ; Fri, 29 Dec 2023 13:24:16 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885056; x=1704489856; 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=QMN6P6UkRFuIZLQOv+2lhjHpbohYNcYTosCGWfaizOs=; b=EM82f/IF+VKt9AtJpaKTCtbk3iVh1sb9Vkeei8WC8Q1Gw6XFHEjKFgVaC4SQl2mNfg oKtWKqvrhNz29oh01VKt11hr0g2S9hvrzRKcXeZaTy5t0V4o+axrzjE/paOHxaTFHQbA 6l8123nVCzqMggKXbZ+rTRZQndXnW37muX+BXloJc7Dq8YJAlWLEc2TPiKmPBULs1AqQ bWyteaVU1dlYcZA/lv/fC8UngqvR5hVWD1IEcp/Lwq9a/c43KGHdWCj2DzzbmWBJkQFC m0kvwkVVVoOiEIeaE6ECMVOUS06hRKd1Abgig3DKBA4Jx6dwXXD1NcwD6vBBQhYuznvv eAWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885056; x=1704489856; 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=QMN6P6UkRFuIZLQOv+2lhjHpbohYNcYTosCGWfaizOs=; b=jcLzr9Ii2ASEwABV3YbR3QOe8m5aiHFKCfr3fYgNQUzn3dnYQ/SnGQfgb96SoXHtOr qkgiuJGqRjIiAHwnLmOKxBo9a99gZ591U/6872r7/WLkGhjIbjZGPZVz9slnLr9jj0XS 9fkUZRKkVPUvfJ3hdSyMvRV1BUBPL/xTNRpkphZAX2NMpIQ7Azjres3cdrfzlcxIe0M9 zDQPswHiWYtu3fDQ30w4qCOUD7ywSFwoOkQai62Nl7T28Bv8R7zofXy/KhhTvIvc03PP l41/Y0o/N0lpcapPB9xHYdmrlNotZ8b/E1g6VPi7/TYDQV3g/b+/swmRiifCN5YaGOr6 WErw== X-Gm-Message-State: AOJu0YwFiftScJSWpv6JhocynnJMws2sOjpWzDFxDEozcb/mT1CX6uq6 +OSZ1ALER+BvjIfncnBA0UJqjEb6FhSQDGJDySip7nhekLf9JQ== X-Google-Smtp-Source: AGHT+IGtctOgEMvx0b+glX7DxlawJ2VUOs9NXUUVQRD+UYNdj9aAJY/73gMq/DdDOs27ksAmz3pbQQ== X-Received: by 2002:a05:6e02:1545:b0:35f:e71f:4c63 with SMTP id j5-20020a056e02154500b0035fe71f4c63mr9872127ilu.100.1703885056119; Fri, 29 Dec 2023 13:24:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Song Gao Subject: [PULL 09/71] target/loongarch: Constify VMState in machine.c Date: Sat, 30 Dec 2023 08:22:44 +1100 Message-Id: <20231229212346.147149-10-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::12c; envelope-from=richard.henderson@linaro.org; helo=mail-il1-x12c.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: 1703885116062100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Song Gao Message-Id: <20231221031652.119827-10-richard.henderson@linaro.org> --- target/loongarch/machine.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/target/loongarch/machine.c b/target/loongarch/machine.c index 1c4e01d076..c7029fb9b4 100644 --- a/target/loongarch/machine.c +++ b/target/loongarch/machine.c @@ -14,7 +14,7 @@ static const VMStateDescription vmstate_fpu_reg =3D { .name =3D "fpu_reg", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT64(UD(0), VReg), VMSTATE_END_OF_LIST() } @@ -36,7 +36,7 @@ static const VMStateDescription vmstate_fpu =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D fpu_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_FPU_REGS(env.fpr, LoongArchCPU, 0), VMSTATE_UINT32(env.fcsr0, LoongArchCPU), VMSTATE_BOOL_ARRAY(env.cf, LoongArchCPU, 8), @@ -48,7 +48,7 @@ static const VMStateDescription vmstate_lsxh_reg =3D { .name =3D "lsxh_reg", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT64(UD(1), VReg), VMSTATE_END_OF_LIST() } @@ -70,7 +70,7 @@ static const VMStateDescription vmstate_lsx =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D lsx_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_LSXH_REGS(env.fpr, LoongArchCPU, 0), VMSTATE_END_OF_LIST() }, @@ -80,7 +80,7 @@ static const VMStateDescription vmstate_lasxh_reg =3D { .name =3D "lasxh_reg", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT64(UD(2), VReg), VMSTATE_UINT64(UD(3), VReg), VMSTATE_END_OF_LIST() @@ -103,7 +103,7 @@ static const VMStateDescription vmstate_lasx =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D lasx_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_LASXH_REGS(env.fpr, LoongArchCPU, 0), VMSTATE_END_OF_LIST() }, @@ -114,7 +114,7 @@ const VMStateDescription vmstate_tlb =3D { .name =3D "cpu/tlb", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT64(tlb_misc, LoongArchTLB), VMSTATE_UINT64(tlb_entry0, LoongArchTLB), VMSTATE_UINT64(tlb_entry1, LoongArchTLB), @@ -127,7 +127,7 @@ const VMStateDescription vmstate_loongarch_cpu =3D { .name =3D "cpu", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINTTL_ARRAY(env.gpr, LoongArchCPU, 32), VMSTATE_UINTTL(env.pc, LoongArchCPU), =20 @@ -193,7 +193,7 @@ const VMStateDescription vmstate_loongarch_cpu =3D { =20 VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription*[]) { + .subsections =3D (const VMStateDescription * const []) { &vmstate_fpu, &vmstate_lsx, &vmstate_lasx, --=20 2.34.1