From patchwork Thu Dec 21 03:15: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: 756934 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp687166wrw; Wed, 20 Dec 2023 19:23:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IH84vDBvV0LAzj/X/STpj8cUTKjMmgUqQaePr+17BYFzmZAwURW3y7UygdhqRdu1+YDms5F X-Received: by 2002:ac8:4e92:0:b0:425:4043:96ee with SMTP id 18-20020ac84e92000000b00425404396eemr30070655qtp.123.1703129010401; Wed, 20 Dec 2023 19:23:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703129010; cv=none; d=google.com; s=arc-20160816; b=BvhyeQM970nUqSeirUDXuV6x1nrSd1oxoRr/ynRlsqyVpOjKNReTN5ba9CMvVb9kP2 SW+c3sp6HdKfz0FHlaHWprzlSK7Slym8lUzAvgLpvxv6yDzbuz8N34ym7AQciNueY00e Dfem3D/P2l8b6E1a/Bvz8KlFPJWq49UJa0YtaFwF5mz4P/ENZatP4mJsKRluM8nsYvRS N7i7mM5MDWWUwGJXKHM6TGQSWBTrvoKNOVJnho5nvM2qOeDNZ+GIZh7OEthEyUN/3tG9 z0t+D2oenoCQTdl50Jy9DmXh180Y8ZbR49x4le3NpVHxEi0lqMuiqPfJHSCpCH7iCvKv WgmA== 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:to:from :dkim-signature; bh=6KY46huI3mUxtNUliqIZ5HRP38hRIGMvbGBE0iwxXC4=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=v7pAv/gWXDWWXfZjaNtxiNm8dAs0QDmUz3WD1IX0A3an/KnW7FgEibl6bfS1pl3GdL Um6Wa0pYHKCf2IWKT+HQCs25P0R3Cv9CX/OEzw1Ks6pYg83TxBTb1/EqQOIGGZM2Aybd 5jfCAeGJMILCGhX1SHeIuijvLJaKaVp9nfezCfkJ/oVXP9AzSaXnXU3hGbNQ8GN9U5H6 PvC4P2/8ZGy6lWDR1x90SYNdm+yrROdpVkXD0chZQTs11tmok/2FCjSPmR1XdLlCOUpz 3JGDkpWgyIqg5QBu+xhpq/FAYPMZoLcIW+L7MpI4KEvbkq+sO4J2BP9pYNrX0vRZpROM 5+YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KgWknse0; 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 f5-20020a05622a104500b00423e4365c05si1215183qte.409.2023.12.20.19.23.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2023 19:23:30 -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=KgWknse0; 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 1rG9ZM-0007U4-SP; Wed, 20 Dec 2023 22:17:56 -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 1rG9ZM-0007Tu-3F for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:17:56 -0500 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9ZK-0003ln-GK for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:17:55 -0500 Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-78102c516a7so21908285a.2 for ; Wed, 20 Dec 2023 19:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703128673; x=1703733473; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=6KY46huI3mUxtNUliqIZ5HRP38hRIGMvbGBE0iwxXC4=; b=KgWknse0nM0WBpcCWxVUA9tBg/ktu7onuOagXkBvdhhLpfR8G1JO3LsP9gEebClybT ge6OrbQhzrGJnF/iWbkvQsbe77C26imqtO1NZcSrFFnXsbsfpv/2EvYd8zfvxsqk7zHN 414nLYIC5kd778K8iV+4Cgb2ch/9igPlj9k1BzIju8DHDC3vYA6zPLYQKZOMl+w1poXX v5zxQbchM4DaEwIQVV2CP/7fDgixR+2KRYxuftr+VTW0N9hKTWxF1HQQoVrFXO95DFRT 3nQJZOml8heyXAYoPQclWzrRNA82dXenn7CMV4tQd3ihvfWgD3QVZKhwhCoIkockWRk5 e8nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703128673; x=1703733473; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6KY46huI3mUxtNUliqIZ5HRP38hRIGMvbGBE0iwxXC4=; b=OcFQpJ6PxSx8ZLdir2BumVOfOUSPjUX3aHALh5VcAGeTZOfz2CXW1wATLzniUUBVfY xoRgHCGDqA5/0zMpMh4APQU2NuFLaY/xkaMITz+jB0/mZ6gpOq+QRGTz8FPnjKolYqK0 W2PM0ktCmWlh2DYjP/Kk4m5Kqmc04IH5k88SgPT+nEEqEigdl+AlsP30C6JjGZX74WlM XZJLHm7aabXH5l7HkmMfDSmMQHAjmyGjjkOOK9fFOIC1wLiTYHit7wZNduG6b6TNqePE tTDgXfLFBM/LnZjxgdpN7ud0Ohb9EJpeTEivjaej4Wg3KBoPJUYUaNV9X0RD/JFWytlj uY6w== X-Gm-Message-State: AOJu0YxEUxheeUUkfkiSH8rex07dRbHhv7EjecC56f5CoRbQMwh19rdA pqLZRldhcshIbpcg+47MROw6ZHgSl/x+VWEZcApw4RHe X-Received: by 2002:a05:620a:2b98:b0:77f:92f:fcc0 with SMTP id dz24-20020a05620a2b9800b0077f092ffcc0mr28165310qkb.24.1703128673449; Wed, 20 Dec 2023 19:17:53 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id n8-20020a05620a294800b0078116d55191sm360808qkp.130.2023.12.20.19.17.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:17:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 11/71] target/microblaze: Constify VMState in machine.c Date: Thu, 21 Dec 2023 14:15:52 +1100 Message-Id: <20231221031652.119827-12-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72e.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/microblaze/machine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/microblaze/machine.c b/target/microblaze/machine.c index d24def3992..51705e4f5c 100644 --- a/target/microblaze/machine.c +++ b/target/microblaze/machine.c @@ -22,7 +22,7 @@ #include "migration/cpu.h" -static VMStateField vmstate_mmu_fields[] = { +static const VMStateField vmstate_mmu_fields[] = { VMSTATE_UINT64_2DARRAY(rams, MicroBlazeMMU, 2, TLB_ENTRIES), VMSTATE_UINT8_ARRAY(tids, MicroBlazeMMU, TLB_ENTRIES), VMSTATE_UINT32_ARRAY(regs, MicroBlazeMMU, 3), @@ -60,7 +60,7 @@ static const VMStateInfo vmstate_msr = { .put = put_msr, }; -static VMStateField vmstate_env_fields[] = { +static const VMStateField vmstate_env_fields[] = { VMSTATE_UINT32_ARRAY(regs, CPUMBState, 32), VMSTATE_UINT32(pc, CPUMBState), @@ -92,7 +92,7 @@ static const VMStateDescription vmstate_env = { .fields = vmstate_env_fields, }; -static VMStateField vmstate_cpu_fields[] = { +static const VMStateField vmstate_cpu_fields[] = { VMSTATE_CPU(), VMSTATE_STRUCT(env, MicroBlazeCPU, 1, vmstate_env, CPUMBState), VMSTATE_END_OF_LIST()