From patchwork Mon Nov 6 06:57:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741250 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp946577wrr; Sun, 5 Nov 2023 23:03:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgt9s7jncOMc1O4yUYfmT3psqHrTYkMrR90MLoLU0VADVfwzjINAryC2NLyhxFYKqlVQxF X-Received: by 2002:ad4:5749:0:b0:66f:a470:d1c8 with SMTP id q9-20020ad45749000000b0066fa470d1c8mr16559775qvx.17.1699254199113; Sun, 05 Nov 2023 23:03:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699254199; cv=none; d=google.com; s=arc-20160816; b=sU4lUdndIvOKylaOWeFa370TALrOym01PaJRAnEusTlEM4oB0MPZzRBqhwZ/0dvpHO w+vhHG98pAs+QoE/Q3W6QUo4ClpDYGdO5IH5tJaZEKT9kVndJMbcq9ljGFE2fWzPg93/ cs/W2+2aaoXtuMR9xRgjKawM7GJ8EmeGyK2Wk1Pdik2Mo7RwdSEjLOYDvD684iwppNM4 F95T2oZ4HsJ1C26dhXUUmxh5KblmclTmGKb967ImY58mpSuMYwFrM84PSKlHIpuf2F4b Z51PUIV8EEbSnVis6dZ4dNiSUssy4znDsg0uoc1BmGg25t2BeJFL9e9kDhAPp6z4OU1A 1K3Q== 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=GK0r0bvGCZ9eQqWkzgeODTyST+S/GfSxl8+D4j9zUNc=; fh=U+hGNjcWZPeyLe2bTdTFM68h7FRptferheHiMMFpeys=; b=iJj2Ifs9JbpNaAC3LIimdc8XlXI0JaLxCkhl2Fd3XMriMlqFAjiQUuA9JLp/5uBAZA dOdy+qCQ0Rd7kWCh7HgBGIhbELdg0VEUzAimNoyyZreJA9j/fUMTunv4gicjlSvq6arW ufdgMLsNDncsbzaVAwdOhbrkOLxpJNIXGbceaS6xNtrLXNzvrxE/iJIIN4Py/1kFztrm YDeFEZEmKKiIEgWr7r6mgPE/fnviHNP8o3tqJB02MfCa7Zl8+yQ5t502AjDwYSGlAKbf /QL4wx+LXSrxwnCD6AR4HTA1Q9zqDPIC/TZ3oLHa5Dlo8UJZzrKza6uUgWwjcUNVbhIT LrUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c9COxtpx; 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 b4-20020a056214114400b0065b12b1d559si5062456qvt.284.2023.11.05.23.03.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2023 23:03: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=c9COxtpx; 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 1qztaB-0005aV-59; Mon, 06 Nov 2023 01:59:35 -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 1qztZk-0004hE-LP for qemu-devel@nongnu.org; Mon, 06 Nov 2023 01:59:10 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qztZi-0001Sw-Ep for qemu-devel@nongnu.org; Mon, 06 Nov 2023 01:59:07 -0500 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1cc3388621cso39856505ad.1 for ; Sun, 05 Nov 2023 22:59:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699253943; x=1699858743; 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=GK0r0bvGCZ9eQqWkzgeODTyST+S/GfSxl8+D4j9zUNc=; b=c9COxtpxhL5xCJIbmpNemZir7TiFq8fRYxfT2kGRUPj7aOo6uAf4nxwwNK69sEkyFR s12h0PyTae2xFHM6UJUMS595fg5onl0xNO7DyUssj90H7fS89884Qg1gQ8QR8cJeHjDY qYX69X4vVFN2qdTHQlayq27u6bDmJk7h52qFHO7rimO+h5e/yUDTS5aYR2QSiRg6VUth iriX22sZWdba+tEVw1L9wUpEfo7fu/23AnXY2/kt3+KXZLCYQkUCkiXgPHZu86KpzRlO ZA0fNxpUyVAuxhHEvIpI+RWIVVYxJHjdZOYPz+Ejy8oMytyOnMojVbilZ6x7Wc5c5m8s IovA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699253943; x=1699858743; 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=GK0r0bvGCZ9eQqWkzgeODTyST+S/GfSxl8+D4j9zUNc=; b=EQpL2KFF+UvbLzlKrW8bqkEKtxKT2iAt6RNfOnfqynrYsvgsgL/I6ViI8yQfI/D+Bg jE6cILEiOK3b0um8E/TvaRzin6TcfyQZCO2ZAyXT4c/io2VLNSPf1vPlB5E1Vl2m4rJS rP8+KyNS9HrZH4GY0GMvcNoDkojNMnrcWk+P33T+zERJk7zBsRMU7XPGGc3ppBt91w5N 0r+8AcAklvpGcqF6pMmeUVwuIMYeeAobnQqQ/kkfwU92a8FvWEoapyRYSnecKU38vw7D n16BvFmTa+t3Ug0rohGGd0BD0moCzPjEQooR0s6KhGlU2eA+irplj7iRWrWcWqCDkndT a8oA== X-Gm-Message-State: AOJu0YytuRjbsg+BGWcwGAaLzdmoJIqIlHAlytN85gPe0fGbSvsS2usL BC9obtDTloLLWQ0exM3Lnn376m38FPi7Q1Dsn0Q= X-Received: by 2002:a17:902:e544:b0:1ca:b8d3:f880 with SMTP id n4-20020a170902e54400b001cab8d3f880mr12264150plf.20.1699253943399; Sun, 05 Nov 2023 22:59:03 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id c3-20020a170902d48300b001c62e3e1286sm5167130plg.166.2023.11.05.22.59.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:59:03 -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 39/71] hw/m68k: Constify VMState Date: Sun, 5 Nov 2023 22:57:55 -0800 Message-Id: <20231106065827.543129-40-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::633; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x633.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 --- hw/m68k/next-cube.c | 4 ++-- hw/m68k/q800-glue.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/m68k/next-cube.c b/hw/m68k/next-cube.c index fabd861941..baca38bf39 100644 --- a/hw/m68k/next-cube.c +++ b/hw/m68k/next-cube.c @@ -996,7 +996,7 @@ static const VMStateDescription next_rtc_vmstate = { .name = "next-rtc", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT8_ARRAY(ram, NextRtc, 32), VMSTATE_UINT8(command, NextRtc), VMSTATE_UINT8(value, NextRtc), @@ -1011,7 +1011,7 @@ static const VMStateDescription next_pc_vmstate = { .name = "next-pc", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32(scr1, NeXTPC), VMSTATE_UINT32(scr2, NeXTPC), VMSTATE_UINT32(int_mask, NeXTPC), diff --git a/hw/m68k/q800-glue.c b/hw/m68k/q800-glue.c index f413b1599a..b5a7713863 100644 --- a/hw/m68k/q800-glue.c +++ b/hw/m68k/q800-glue.c @@ -189,7 +189,7 @@ static const VMStateDescription vmstate_glue = { .name = "q800-glue", .version_id = 0, .minimum_version_id = 0, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT8(ipr, GLUEState), VMSTATE_UINT8(auxmode, GLUEState), VMSTATE_TIMER_PTR(nmi_release, GLUEState),