From patchwork Fri Dec 29 21:22:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 758810 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp4671485wrw; Fri, 29 Dec 2023 13:28:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlCLD73rkKJ5sm9oTcU5ZUeaN8JyCLMF4c+6n88ExPYiSSSHQBDiq6JTmWJ0qcXbBc+EUF X-Received: by 2002:a05:6214:2d02:b0:67f:bb8c:87e2 with SMTP id mz2-20020a0562142d0200b0067fbb8c87e2mr11834129qvb.46.1703885285349; Fri, 29 Dec 2023 13:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703885285; cv=none; d=google.com; s=arc-20160816; b=fGY/OPQvhqs4A+PBmu3DSdumvMo1YXYJW5JCDh4lFf0qtxkpmNnD/TfOCAnYPw4bly GhdJVxRUrXqzGR3p8BG5nuNillb9ICw/hrRB3OSrJ9zCGKQ9U7ZPggsZTPD7IjpGQ2lQ GaEgU3n+dm/D0EOXWHD1VKzzx9/YRG5qnM3em6BApTUQfEb8TXvB1udOjoqObbSCDMUo nYbq1NwgwEEQC37kRGQLs1I8qbWmEcMbBVCkweWWYJn9st3RfVquu2RtTnC0RWv0ePWu wufMFfjJZ6RL1slkIoRqUuRsTmOL3ofRaQTW8a9FcGTbFIaRkwlb6BIJoEPW7YcRhdt1 ocbQ== 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=nyDvxTucZvevaETcjw9mADYnujp4cVpiY3zTBw5hjb4=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=xu+BDVkKk5xYP3pHme5GFa5x8KjROL7uorpNAD9TFMwNhBRHoLImdy2prOZGSKijbx AjYYpx6qCzRwonLN4eyuCJH9E/QwNBg15jO8xJf/mqtMGgBPsA/gPdhrcGfpjJhDe1p7 GyunLq53pMn6sGLRmWmozL62YymcU4huRzhcJrLPvLVPAy4QtaTGHiiL56XtPPVfw18e LDghw0jbjM0pWESQcJhYkvnkDkOGGkq/b6a8ApZqemWbrbcee7N30KhuzxyOvEtZuwBj QXf2FuJ7MjvbjnUm+HO0jvOO3a8JYs2hpyrWIun6tsn9E2GMcoAteh6APSQy2ciYWDgY sj9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZoCG+U07; 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 p18-20020a05622a13d200b0042612900969si20125521qtk.591.2023.12.29.13.28.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Dec 2023 13:28:05 -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=ZoCG+U07; 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 1rJKL0-0006s8-GD; Fri, 29 Dec 2023 16:24:14 -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 1rJKKv-0006rC-Au for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:10 -0500 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKKt-00063m-Pp for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:09 -0500 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso5598121a12.3 for ; Fri, 29 Dec 2023 13:24:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885046; x=1704489846; 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=nyDvxTucZvevaETcjw9mADYnujp4cVpiY3zTBw5hjb4=; b=ZoCG+U075binTMh1vSNKOUHcZQtIT1CwnyLr3n1qPiDAJ2UWPP8O7f0FP+dy18Xz2V VIgb+jHp6oN3HvjZFlBg+KYlMUb1n3sbdFWVsoWLleJ8h8+j52EahEPZ2R3h0QEMZgZC bc8t2lPki3S0Xw2UIeJX+pjxy906iMqp3gcRaDzWjubXZJxhTjpaXgSIin2HFe9ERZgo sFM6rsqrl8wljFkNWRmqIkyBVIfn749vjH5NoN0puDAlhog5KdQoAHmG4/7Z10itphdn U7/I9dzSQrJxQx2t8/valMt1ugOeRMEtIxZo+FWA7n5TeGSmqvjm5dB4nc69hQLbKZYb PTFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885046; x=1704489846; 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=nyDvxTucZvevaETcjw9mADYnujp4cVpiY3zTBw5hjb4=; b=IQPi+N+9C1r6tMgdwvSK6JTwn5x2YrryCyXk6/aIyjtDP/dnyIjxODkRwgHfNuYjTJ PJDNEehsJmcT52PVokZd8XXrZyYtAN8Y6ikiTG+xREGscgHCzlbYQHR5Jt9goWq2jbUa BkRVMQupSYRcIQ75H7IMYSF6f9OVORH9rmVDzGaoVJxPaFP4p6zNI2oS2tW8AhtaZpuo O9QXMgB03zeAMVNx0lbgd1WghK0nl9BIP21EpWhR0cSl3BtFTpYjSxEvUUUgWAB8i1X/ A0g1pyh/jsHYng94RfaLtIjSnDWoAnkTjUTz66/A/3OjheFjsMWg0thEQgixV/bEPYdb 5g1Q== X-Gm-Message-State: AOJu0Yy9eEkjFvEagPnYhK3TM0gxC/2s/s2Ds5+ysoHjPu5ycccKryC5 bn+CVm5rA+6tIeKOMj9GiG12qirwTP4uo9MewJSZpgmHRIUB0w== X-Received: by 2002:a05:6a20:5518:b0:18d:64a:e125 with SMTP id ko24-20020a056a20551800b0018d064ae125mr12740578pzb.31.1703885046375; Fri, 29 Dec 2023 13:24:06 -0800 (PST) Received: from stoup.lan (203-217-28-32.perm.iinet.net.au. [203.217.28.32]) by smtp.gmail.com with ESMTPSA id a34-20020a631a22000000b005c65e82a0cbsm15016237pga.17.2023.12.29.13.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:24:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 05/71] target/avr: Constify VMState in machine.c Date: Sat, 30 Dec 2023 08:22:40 +1100 Message-Id: <20231229212346.147149-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231229212346.147149-1-richard.henderson@linaro.org> References: <20231229212346.147149-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52f.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 Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-6-richard.henderson@linaro.org> --- target/avr/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/avr/machine.c b/target/avr/machine.c index 16f7a3e031..4402862fb9 100644 --- a/target/avr/machine.c +++ b/target/avr/machine.c @@ -100,7 +100,7 @@ const VMStateDescription vms_avr_cpu = { .name = "cpu", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32(env.pc_w, AVRCPU), VMSTATE_UINT32(env.sp, AVRCPU), VMSTATE_UINT32(env.skip, AVRCPU),