Message ID | 20231221031652.119827-18-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp687483wrw; Wed, 20 Dec 2023 19:24:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlCzMl1/GPOXxICDF3WD5tx/acMcrnAX2FGR8wuMhiR+ZS9yzEpTQfznmsKPy5owuuX2he X-Received: by 2002:ad4:5aea:0:b0:67f:2afe:508f with SMTP id c10-20020ad45aea000000b0067f2afe508fmr13084480qvh.12.1703129086122; Wed, 20 Dec 2023 19:24:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703129086; cv=none; d=google.com; s=arc-20160816; b=tgb9MRynZ/0c9kwKReLFJoE8f8pD59FIXGwPJwr3ImBLBholmRh2BKFQongYDueWt3 pqg9yX1B50ggNe+vbWJalJv5P8/VdFe3RflxSfk9wivGUgbc6ymIEaBErIGMIANLwVkw Dh66+4qH2V+WsFjWfXvCoNCDvBKgv20tZjUseye17mtS5f+W6RS+MIT+oSV9GPPUCKO+ bU95Gw8qIlpVV2uMnnIL8K4XIIh4jqhwsEDKMQfQWATVOF1Zf0WTs+z3r9DpIa0BNFqi CFIkIjKc2zczfnGPDDX7P5kjUADTPOAo9OMucZnHhhI4xadAd+ULkT4HPV3C+fVQGAiO 5uMA== 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=VSRKoHjlOWEZu2eNFJmmFp8t2vE+PeEbwst6EsDj2Is=; fh=rYI8DiHAAFX3O5g969KmOAQ7d45Sb8OxQX1+DywGDk4=; b=mDr64tGvrtdORUvuBm3MkGt6C1wWYsWLq+raPGEeJazIQSh08NQDEACjax9wCP23vt S5xgEsGHVYhRL2XVCh6VvwSo1xT2yBUFEWphECx9lhJTK2VeEHDqTMFMfhpOLZTgnKAo R3BjAuwN/j4t9Vb3T1TKkVEHGfVjr0LnLmkj8k2LbXs9rVfDq9lzKzSlQDljYRemDtQe HH20Q9xXm43N8NGHJWTNTTmh0HuFtX4P1el46rdpu+cl8/klGCeMkxo4Twm8wzzu/GqB zqm1necEne/OXhV/61UE/tn20Fny75iK68opP5p0it6hdqxM2PYBwkqUWrGDKNTZLC21 uejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mbXlQN+x; 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 e7-20020a0cb447000000b0067f768ed172si1145553qvf.505.2023.12.20.19.24.45 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2023 19:24:46 -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=mbXlQN+x; 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 1rG9Zl-0007j3-D8; Wed, 20 Dec 2023 22:18:21 -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 1rG9Zj-0007cp-Q6 for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:18:19 -0500 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]) 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 1rG9Zi-0003ph-At for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:18:19 -0500 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-781045f1d23so22376585a.1 for <qemu-devel@nongnu.org>; Wed, 20 Dec 2023 19:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703128696; x=1703733496; 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=VSRKoHjlOWEZu2eNFJmmFp8t2vE+PeEbwst6EsDj2Is=; b=mbXlQN+xgafjy6i88hcsBE9sJpDoOEcx37YxE7LH0YShrc1Xqh1+ALRQT/ksJGGJSS VkYcyz/P3AYrhbS3pW8yx3Otq4G8+ntsuIFuBOIiqSZeXRSO2Be182jgWIAL+0vq1yIO AwEciJuY8M7k8P2pbDUW0RRjgAQDl1mEJQNutNMH9XTeUiIud1avoLy5xAPYtgPeAF/x 09eSy4pTdE7M+7yHOBTKF0dKosV8FVVLWOvLZMvmoZVufKiHhFbEWx5EOg9/aDDOzVuc DxWMahAzeq9SNFEidoYtp8EbLSkxk4fSY+3ccJSgUJlJm/jwX+LffbegFWyBkQdUXK/0 Ntsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703128696; x=1703733496; 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=VSRKoHjlOWEZu2eNFJmmFp8t2vE+PeEbwst6EsDj2Is=; b=VdgpVslxmZRfHgrNIQWn0TrK6Wwg2snLnj2GHwkmjmcbnBYibNSOdE8jI01CBGVJsb AnGFSEtHqwQqprXPX9wYgN9lE6aNON1YL06s+yGFg8o4w/OVLyOCy9BUEwtwbYJfASP1 VBS9BT0nKhCNt8aAu94EgqcDKnrMXX18tFQj0BVHSOoYUBvnKEj0XjiQMsnBP04fMrNY 5WTCb3SDM/ZHMnMSgeEZmLyk4QU+GUkEhPNLLEhPExW7s9K51VHbCgJjgj6B8ukm/d6V UIOQ1HRN0wSrGcjmEZNcuMG2tEI7jLQX2abYmjwUrt6Ldlbc6xsY2vkqyLK0KouRcs3t jIqg== X-Gm-Message-State: AOJu0YwoDLNCejdsLje8lm5sMWB9U63rXmNLGy12kFhNNY/czT9khURI JLKCymUsn0OdMBbQU58z0yQVIRklRvKBUTFexTu1ah8z X-Received: by 2002:a05:620a:563a:b0:77f:439:8128 with SMTP id vv26-20020a05620a563a00b0077f04398128mr25895842qkn.69.1703128696680; Wed, 20 Dec 2023 19:18:16 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id n8-20020a05620a294800b0078116d55191sm360808qkp.130.2023.12.20.19.18.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:18:16 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Subject: [PATCH v2 17/71] target/sparc: Constify VMState in machine.c Date: Thu, 21 Dec 2023 14:15:58 +1100 Message-Id: <20231221031652.119827-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231221031652.119827-1-richard.henderson@linaro.org> References: <20231221031652.119827-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x729.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
|
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,