From patchwork Mon Nov 6 06:57:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741305 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp950105wrr; Sun, 5 Nov 2023 23:14:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IH01wocZkqE6J7w4PXdul/9eOGjudJ8NiByi8lRkHrutLrof4bmGJqIsIBpNlqZisiwT/ZM X-Received: by 2002:a05:620a:13ce:b0:76d:aa3b:ac9c with SMTP id g14-20020a05620a13ce00b0076daa3bac9cmr26262581qkl.46.1699254873982; Sun, 05 Nov 2023 23:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699254873; cv=none; d=google.com; s=arc-20160816; b=i2YWRlyVfwkyu2a78SJBojKrLlgfi8nqRez9maG0xGmESZOXfB/0Izb5GBtcsXRBUl 1fnTcaxD9SV4p/jxja59Sv96u6fF0CLvLHyhI9iw2jDRLOwceUACZIxYQ2ZPRsKvfdY5 pl6vopECELQMm2RzrxGi/MWEMzteafIFWB2EmfeZKH95K47n63f2MflOypDTZUizs0wY jcvim3T8BWhrsPUnFY4lW/qZNxVFX7dNmuBv8BETzvl9qT25Ab8TwzGiN8q1C9pTPDXZ JEJDa9c67XtrVtzL47157pokLA4LClO37224YN3zMaz0yqGNUxps9oqgQhnbyp1zFkNY YkFA== 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=KS5pbyfQkBJ8BXnndQLZdlQ4oCZm/2DiCmUpXy8qB3I=; fh=U+hGNjcWZPeyLe2bTdTFM68h7FRptferheHiMMFpeys=; b=glvqVGxRcqmbe9An8PRMBGHOaH2cqhweZ3QwWtXeMNFXudBA28wo1yxMwH1I/8jHKD S1ukX4ZS0aOe1P1paK0Yiv88bx3up+hy15F79D+5H4RfDh0hhUr01v9buVhU28cfTyKS urFhK7VsBVHXEK60Dv1Hp2p4+lOJPMs5F4a08D9g1WH+4sHr6OJseLZEGtYtivP/8bXp Hxo9CMey6fgrDFTSgbyA7LxlcoTg2nPZE7RPPO+eviSSniANFgQNSMQejvcqp7Bkupdd WTS02MU7S5iaJdjSWsh0apZQv8sM3arGmZc4i4YkF7AdtNQKWHpsNaBjhNQA1ZagOEpP Vo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xK6En3YO; 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 bp30-20020a05622a1b9e00b00419608e885csi5280337qtb.692.2023.11.05.23.14.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2023 23:14:33 -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=xK6En3YO; 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 1qztZZ-0004Zx-Qs; Mon, 06 Nov 2023 01:58:57 -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 1qztZS-0004WJ-1z for qemu-devel@nongnu.org; Mon, 06 Nov 2023 01:58:53 -0500 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qztZN-0001Ot-CQ for qemu-devel@nongnu.org; Mon, 06 Nov 2023 01:58:49 -0500 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1cc394f4cdfso26402115ad.0 for ; Sun, 05 Nov 2023 22:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699253924; x=1699858724; 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=KS5pbyfQkBJ8BXnndQLZdlQ4oCZm/2DiCmUpXy8qB3I=; b=xK6En3YO3sUV7xPZKo4mFlaxU3pvxVAk3FhDoE62lZTxpmUI79X7smGxKhcimOzeRP YYxjCFmodr6f+mN4OptdxKO/mxFz54owDWOhH+r/98Xom9KF1ymg2YDU6IfzRGaeAmUx 3XNQDcYO+R+7O22HLBAOUAIFAdbz2+PLTFuRaam3zgmfJguf4ikoBwW24utYY0Dc/4fK 3suzokdbFhAg/EqOuhNIfXDv343dI+r7wp/cPYa9L90swZPmeuilxYzOsZM9kI96Y/gh eK33ZLFIXSzDIMJCXQecLAB6J7g7ieHFWF9j0I5ibZMTh5Qqhq6a8RtDyCx0bJVKqQHj E5gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699253924; x=1699858724; 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=KS5pbyfQkBJ8BXnndQLZdlQ4oCZm/2DiCmUpXy8qB3I=; b=eW6y4WGdO/pRSaTlwEyxm/7iymQbCB8mq4olP7XcA8dxvn2JMGyQo9MFCdmp6oPLlA qaE0ZQ7yx03d2ZgddYOvWTzxe3n4AuSuoU/q3quuujerCFwB9CXwl6FVIy3yXzHsWkyU 4cPrAlaJTi+W2ena0hHsEAsw4psW/ECNV5i92tPnISH1yfjLsaQ2xa3y95lo6mKvLGby uMmylS6GOA/WlSW2/SIpRz3YZVKy3IesFhpTQXPwuKWHn5dBUsiw9tCT8napBAJXl3SX W1iuQohnCXpK/JNubylwteAN0bI4/tBpNjOUMWe9XeqY2UW4OVZo4mEdJsE1mAaQwtEZ 28QQ== X-Gm-Message-State: AOJu0YxVWveJY0/RIc21yvberxnDFdzkOb8a4gy4ADmRKTpBycZnBCjK HYUBSvje5ohRjQf/k/4r1eVsXbYVBfKCrR3SbbM= X-Received: by 2002:a17:902:da87:b0:1cc:4146:9eb0 with SMTP id j7-20020a170902da8700b001cc41469eb0mr23674492plx.57.1699253924183; Sun, 05 Nov 2023 22:58:44 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id c3-20020a170902d48300b001c62e3e1286sm5167130plg.166.2023.11.05.22.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:58:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: quintela@redhat.com, peterx@redhat.com, farosas@suse.de, leobras@redhat.com Subject: [PATCH 17/71] target/sparc: Constify VMState in machine.c Date: Sun, 5 Nov 2023 22:57:33 -0800 Message-Id: <20231106065827.543129-18-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.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 Reviewed-by: Mark Cave-Ayland --- 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 274e1217df..b1b1e16b13 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() @@ -111,7 +111,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,