From patchwork Mon Nov 6 06:57:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741259 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp947580wrr; Sun, 5 Nov 2023 23:06:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUYn0s7rfwmHEWvcmAsQ/OieBYmcnnNMeHsx1Y8vJgl0LXxkfq33SO0kUdhAJ/KoY4Qd1K X-Received: by 2002:a05:6214:1ccf:b0:66d:5cfe:82a6 with SMTP id g15-20020a0562141ccf00b0066d5cfe82a6mr16398716qvd.27.1699254401423; Sun, 05 Nov 2023 23:06:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699254401; cv=none; d=google.com; s=arc-20160816; b=eJdGxHmvDKAEdM6zmfEdQIhVsw2MILzQYAZzEOEbmKq4q1A7kkOuN1MoQbnYI0Rht5 8QrslmvJ2O+2sO+zmi5Uj/qUfBRj7vdr5DOVxCZ1fl1uzbHZOIrY1nUfaZUys9n2R76o kBtDmP01mlvW1pJJwJvL8P7K11cJFQZbyKeEAHoqH+WMRc6D+bjRnPnYpU9Ax2/6b+AP urkAEyxgE8ZljuNkrtKu3SOR24bH3kqdo6slsnuRPvnJG+5kYREG014Xke+aGpdVvaDd OBajx/YwF/7ytfVs5I8Lkfkty6xOV0t8W8olKcKjazk8kdIhO+JPp5g3wIHKn+5DsQ5L O6Nw== 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=FD5wy/U9+bZCbaz0itBRFKutSZtCYzbYclfjlyxHVl0=; fh=U+hGNjcWZPeyLe2bTdTFM68h7FRptferheHiMMFpeys=; b=vP1+rGETIexPh9us7o8byXVloRWxkdCMEoSAMsYsRATnFgnlM3btqcDu4UKdbzedOz yQbXfBSWZro2Vhm8fMPcfIyJXm/osmLZZz/bKD7MVNkoRNR4uxnvfVCG4GS8rhBaQSwk 5XH62hhD8FY+GdRNGVmnokh8oCHBilDY0gpmtACg1vscjCOrcwKK0uW+nl8elqAggyep 97rt1WDD+sR1jfY4dcMe/c178szocnrUxzKFUs0p/ZvLFx0KjtKCBBmT/doTavnUwRgo 3X4D83cKm+G87hkxIfg6JFYi9PXenKLdq4EoFw7CfMHLQfi9SLnLJxjA/6yQ1NJhOkkj 9Tpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aEEnK4ax; 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 h13-20020a0cf8cd000000b0065afd8ab934si5340878qvo.376.2023.11.05.23.06.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2023 23:06:41 -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=aEEnK4ax; 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 1qztZP-0004VG-1c; Mon, 06 Nov 2023 01:58:47 -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 1qztZL-0004T5-Fz for qemu-devel@nongnu.org; Mon, 06 Nov 2023 01:58:44 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qztZK-0001OF-0c for qemu-devel@nongnu.org; Mon, 06 Nov 2023 01:58:43 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1cc3388621cso39854775ad.1 for ; Sun, 05 Nov 2023 22:58:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699253921; x=1699858721; 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=FD5wy/U9+bZCbaz0itBRFKutSZtCYzbYclfjlyxHVl0=; b=aEEnK4axA9B3VfGqCcpvNli7//hbA03xg/nImdH8EdypbRHOo86oxnTyVdOXuOFZgC tclmc3oDhY5CPvNeCuTgFBOCfIiJRMtmt/TA5W2wsdP5oXwPAvTqJeziyTMxUOTM8NYp B/XbBBbT14Lhi22kF+Row1aoikrte2q8IpqIGuNmbVDqE0xVAcc4gX7ZtgHrHUFLVSKr /Ny9Mmv2neKqzPP6uErgchf8/zXkjbEToHJO9aM4UhJy9bDfD8izU78CulPLdezeoSMu PLcyBRQlDAbWu/XUnPQbuYkce2k8sz6gJvLyCeFNwlUJVTCFgsyjxbw2dvMGaFG4kxp8 qsHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699253921; x=1699858721; 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=FD5wy/U9+bZCbaz0itBRFKutSZtCYzbYclfjlyxHVl0=; b=OTCQl+bL8iI61WRp1KOyBQboghiNlKDt9nM6+N8ECiH+vA/PwAk4MN6ca6IuhCcQ48 IPoXoo4uTT9w0uNrvBR6ZyVOHjP2plQYBjspQkntlPraz1gM7uafABHPUyf9SLhFGkEN GXQH2vEyexKl+tpo2mnbT8g6087ch2ir+gaOyRS2hr/y2eMkRbQpOkBvZPXfR+8ziYWz mFrybYgjptyP1z8F6el5issLpAXOH3E0kwCxlxZInnjx/dG/jcVwgfjiZwJAcnA4S0ZF k7bMQxWHHL1xRJ6D2kOLBHPxUy2NLrN4fOI7d9yOi2libgQKA8yFw3rFngT++NA+0RyW EDsA== X-Gm-Message-State: AOJu0YzLciR7TDLWkONuybtMHSTYAwzyBXDfQoTckUsbw9iSzPoQ1d9F FsV+8ECP0P2cjMWRYbjLneNIO+7eXXPVQGb7J5o= X-Received: by 2002:a17:902:cecd:b0:1cc:6078:52ff with SMTP id d13-20020a170902cecd00b001cc607852ffmr14669326plg.26.1699253920872; Sun, 05 Nov 2023 22:58:40 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id c3-20020a170902d48300b001c62e3e1286sm5167130plg.166.2023.11.05.22.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:58:40 -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 13/71] target/openrisc: Constify VMState in machine.c Date: Sun, 5 Nov 2023 22:57:29 -0800 Message-Id: <20231106065827.543129-14-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::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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 --- 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 = { .name = "tlb_entry", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINTTL(mr, OpenRISCTLBEntry), VMSTATE_UINTTL(tr, OpenRISCTLBEntry), VMSTATE_END_OF_LIST() @@ -36,7 +36,7 @@ static const VMStateDescription vmstate_cpu_tlb = { .name = "cpu_tlb", .version_id = 2, .minimum_version_id = 2, - .fields = (VMStateField[]) { + .fields = (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 = { .name = "env", .version_id = 6, .minimum_version_id = 6, - .fields = (VMStateField[]) { + .fields = (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 = { .version_id = 1, .minimum_version_id = 1, .post_load = cpu_post_load, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_CPU(), VMSTATE_STRUCT(env, OpenRISCCPU, 1, vmstate_env, CPUOpenRISCState), VMSTATE_END_OF_LIST()