From patchwork Fri Dec 29 21:22:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 758814 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp4671557wrw; Fri, 29 Dec 2023 13:28:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEg1i5+W67rLfAOHtvY0Fh2gyKUm2TLM8e8IC/AByB5LGtC/tdYfe5jvJvmP+5cehGDIk8k X-Received: by 2002:a05:620a:44d3:b0:781:5f72:f962 with SMTP id y19-20020a05620a44d300b007815f72f962mr5001895qkp.131.1703885299659; Fri, 29 Dec 2023 13:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703885299; cv=none; d=google.com; s=arc-20160816; b=qreX4HsCe3iaqGrpEEBQ3kjr/OcQF7WCejOkj7wpYnFnE72xEmf3Y4QhHfMWHOc8GK +O5Xm8crOpT1q899q12PxzpZPeC0IHY/+h5JTK5r8g7LhYWdj2UHOWoMscJtlhb2q8em UGagstAhiFoDFYGvDaG2+PIDyC0Ga4KxRGG11a2QWPvR5TIx+VJ4SGIeHwVs3lFrXwwJ 9b2QoMCS3ZWWfmM0weeaWS27+FfURfVI3VFJeKm67WjTWE6u03BEmttguHcyob7M1sNe j5zCCgXGrI3vGgesPfGazl5Pwsts9/7qvA7Ok6WdP+NdEFzyDl/pkePTdIT9H6ws/1ui 5mRg== 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=LI81JsuIm1ZNENuf49HeeV43cGqA8WHtNsvGxM/VR4U=; fh=rYI8DiHAAFX3O5g969KmOAQ7d45Sb8OxQX1+DywGDk4=; b=huL+nmaYJ956IE8qTPb30wEAXfNt5ic3p1VhXKd5Arl+9v9IlhYLcOeWbyawMhdhBE TSdyhXOFloESNgTYZY055qVDsvN056PW8hFdkr9OhOQAYGCxSbyQ+nKdvdsHe+/Qbktz A6hVCU4QkosF84RPYqy4dMp2SNWvZi9fyuhdM9LqoTbL5gAoAUQeUCE3xnbOsmVnn2Ax OmDajJNT5fHwQvDh2ewS2+dHVjAZfBQLBbaEYztq3pl/27+tQ1Eb1+8zceGBNMd3X8Vy daJYUGWPpMqWsvOGm30WTY0OTlzmnfZKMVrxP8vTW006QjX0xKY/+tcsG8gwRoejr/MF qsWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zUPAC5o0; 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 g14-20020a05620a108e00b0077f5759e06bsi18700735qkk.781.2023.12.29.13.28.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Dec 2023 13:28:19 -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=zUPAC5o0; 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 1rJKLP-0007B0-Vf; Fri, 29 Dec 2023 16:24:40 -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 1rJKLO-000793-S5 for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:38 -0500 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKLM-0006kS-BE for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:38 -0500 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6d9f94b9186so2214424b3a.0 for ; Fri, 29 Dec 2023 13:24:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885074; x=1704489874; 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=LI81JsuIm1ZNENuf49HeeV43cGqA8WHtNsvGxM/VR4U=; b=zUPAC5o0o9tpb7WMrXxdhEzriw2DjTnvElApjqwG9LurOfJc2LPwhD2yfj7pm1y8nf 4/u9sqEa1/cBfrBMmFzjOHDOlSlAAcXPvOdp/hI1puNRvAHuN9LOgRGlFI6twpA0Akpz n1FMePHc5ZNjuXGwNFgnQDyhDhI6Vw+8dR36YQZoRKWmfKNNr+jIaIehAiI1zm/PTXjM 989B+L5HvTCDLpkUbNBEVMONzQwYG+Bw+4YwydNa7c+fTtK7g4v/vfj4UCYMmhvQihIC UHF/OF6n0rIAPJjcDti2XNEWx9+Be2vvbJdunu0YmbgU0JGPgi7lgQARGYggfGnZtAZG 5Pqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885074; x=1704489874; 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=LI81JsuIm1ZNENuf49HeeV43cGqA8WHtNsvGxM/VR4U=; b=WwWN+GrIOYN/8ZcQvys7K/H+n10C9w+nyGL1pL3vTxZ6XLYFJW/y9Vmt0ba9DK11mQ CltVdOySy7XEmsV5DcOwZCuEBh2lNQct+XHwbcaSKVwsU7gYgo1GuqLfLI1CI8x644WE 5FDMJInw/5Ywz2uO1nymruwL/BfcgmWF6LA4aF5NTIrooi1I/A45at2UJzeLYtfCRXL5 l8i0fQtN2yjm+AzLP+ak9zVwj2p7Mwo/60UkUVMbOvmB3nscv+I3EOATQddgLkRtAdfV w8qlnsueVbwg7SyqhjKrE7UBywSkwb8jLkeCSM9bHAJ+cIUqfVEm6GOb11T9UCGzB78M 9p0w== X-Gm-Message-State: AOJu0YyvQWR6myXa4vyauc9NF4DHpqC/fT4G7P2568NXOI4e9yO4zkze DNLUKkSLLqNU9R7UnH5rDS/gfxN32xQMKFnxWfBpoyOxdJzgJw== X-Received: by 2002:aa7:8b48:0:b0:6d9:8f6f:6b7e with SMTP id i8-20020aa78b48000000b006d98f6f6b7emr11500576pfd.56.1703885074032; Fri, 29 Dec 2023 13:24:34 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:24:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland Subject: [PULL 17/71] target/sparc: Constify VMState in machine.c Date: Sat, 30 Dec 2023 08:22:52 +1100 Message-Id: <20231229212346.147149-18-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::434; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x434.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 Reviewed-by: Mark Cave-Ayland Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-18-richard.henderson@linaro.org> --- target/sparc/machine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/sparc/machine.c b/target/sparc/machine.c index 44dfc07014..2b5686c330 100644 --- a/target/sparc/machine.c +++ b/target/sparc/machine.c @@ -10,7 +10,7 @@ static const VMStateDescription vmstate_cpu_timer = { .name = "cpu_timer", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32(frequency, CPUTimer), VMSTATE_UINT32(disabled, CPUTimer), VMSTATE_UINT64(disabled_mask, CPUTimer), @@ -29,7 +29,7 @@ static const VMStateDescription vmstate_trap_state = { .name = "trap_state", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT64(tpc, trap_state), VMSTATE_UINT64(tnpc, trap_state), VMSTATE_UINT64(tstate, trap_state), @@ -42,7 +42,7 @@ static const VMStateDescription vmstate_tlb_entry = { .name = "tlb_entry", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT64(tag, SparcTLBEntry), VMSTATE_UINT64(tte, SparcTLBEntry), VMSTATE_END_OF_LIST() @@ -147,7 +147,7 @@ const VMStateDescription vmstate_sparc_cpu = { .version_id = SPARC_VMSTATE_VER, .minimum_version_id = SPARC_VMSTATE_VER, .pre_save = cpu_pre_save, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINTTL_ARRAY(env.gregs, SPARCCPU, 8), VMSTATE_UINT32(env.nwindows, SPARCCPU), VMSTATE_VARRAY_MULTIPLY(env.regbase, SPARCCPU, env.nwindows, 16,