From nobody Tue Nov 26 22:16:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1703885478; cv=none; d=zohomail.com; s=zohoarc; b=BRjSNlizmm/m0Qc6wDrhWWIMF2jYp4D1Ou+inL/mSCk0EW85XZr97B+qUZ1Zs6ZtgL239fnGta7OC7e/NSb5MnSeTKqe6I0l7zvRD57ZXsT2JUBFdfFjB9jtIGKXLxpwjnBNqWd0MfMKJBL7dmgSUJ94AcaKWsMcFeBSv3wQEwo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703885478; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2Y5DZJN4hv2XQe15PGcXdVWgl56bQTxp89hl5EeXrWM=; b=CyWXI6+yirEVuq3nCrciUU7znQhKCx4CvPkaJ+fbUQYuZTEopjsLS3FBpYBz0wtmvaZOL2svsEtE/U+qLGEe4eXNoU6YZhZOsAbLGdq1d9ccdwNl+9zk8NE1MwLduIrtpusax2IDTB96Z3vOUiCXmUPY3StYs1ptYrjQkijARaU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 170388547850968.0443904764386; Fri, 29 Dec 2023 13:31:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKQJ-0000nW-47; Fri, 29 Dec 2023 16:29:43 -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 1rJKQD-0000AD-M0 for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:38 -0500 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKQ8-0000R1-V4 for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:34 -0500 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3bbd6e37a9bso1280079b6e.0 for ; Fri, 29 Dec 2023 13:29:32 -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 bd33-20020a056a0027a100b006d9a96b7d0dsm11285396pfb.208.2023.12.29.13.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:29:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885371; x=1704490171; 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=2Y5DZJN4hv2XQe15PGcXdVWgl56bQTxp89hl5EeXrWM=; b=K6AnqXvh/GpqgphPu9NCTzz+qgBI9KQV244O0KPOO2RZfrcMAjoBz+ErtfgA6EjgdX hD/W7hKauLZbzJy7j+k/6fxX9AoUU521QTkimBIhs8OxW0WtwOei30J3h6S1fzeb53/7 r1xDAu8OGf2h98VF8YITqqGIrxyWtFM+sp4EmMIeIIricDTY9ph8RuY4qaLL8pAFYhcK SNsfyju62bYlD7+cO/jqJg8XMV8y1BrK/ElFIfpgG17gpcb2Xtu3h+XLtYNRaE44Ri4O dFnbyqbl7tFvvvv6LC0HSbX283QjkajQmJ7/c4UtBfd9vbNTQSTmWisEQd1qVK1mkfDO QhHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885371; x=1704490171; 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=2Y5DZJN4hv2XQe15PGcXdVWgl56bQTxp89hl5EeXrWM=; b=luHO+1YQCgo+y3+9uEuuklqt8Z9oiCfvoWD4H9xHJlgSjgIh3ldZFo2oeg2ZK5nmlp DUxX86P/nxgo2p2nsWy9H53ywE+RsRsgqerWQNUmriVDRjiVlMmDWRUwK1OrVgcSmMiF GlfSn69EiUF35GVkVW3NygDXP2aS6E1ID9DCYYMTJS5iZqiEfomOWz8Qfp+OZRxJT0oS iPfu9HLCjzNVG23KLaOcekYwymtquu2D3SfFopd0+GUxnDesWY4uAFf+hz8T00RH672Z 7DO8y21IHXeJ9MtYPFNDXo2NbmixlmueaSzo1FuMemS6gUjt28fKpviS2oKacL73u2jx kywg== X-Gm-Message-State: AOJu0Yyph7foD7Zmhz/wRzpLJMyG5olJUEjPXSHQPZSU08WKXQ4C0qYo jXi1mXdy2zDrluKOsDPc94ATVVeduf3RkRK4eMRMC6xVp0CNxA== X-Google-Smtp-Source: AGHT+IG7+ubMnUfaI9fPV/7IoLDbicMi3tG2Nyp8wnHmhnNgizvYeEoM38n/Wep8/sc4JKLL1bpwRA== X-Received: by 2002:a05:6808:f0e:b0:3bb:ce11:5d3c with SMTP id m14-20020a0568080f0e00b003bbce115d3cmr4828044oiw.73.1703885371598; Fri, 29 Dec 2023 13:29:31 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 67/71] system: Constify VMState Date: Sat, 30 Dec 2023 08:23:42 +1100 Message-Id: <20231229212346.147149-68-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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22e.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1703885478824100007 Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-68-richard.henderson@linaro.org> --- system/cpu-timers.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/system/cpu-timers.c b/system/cpu-timers.c index 7452d97b67..bdf3a41dcb 100644 --- a/system/cpu-timers.c +++ b/system/cpu-timers.c @@ -165,7 +165,7 @@ static const VMStateDescription icount_vmstate_warp_tim= er =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D warp_timer_state_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_INT64(vm_clock_warp_start, TimersState), VMSTATE_TIMER_PTR(icount_warp_timer, TimersState), VMSTATE_END_OF_LIST() @@ -177,7 +177,7 @@ static const VMStateDescription icount_vmstate_adjust_t= imers =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D adjust_timers_state_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_TIMER_PTR(icount_rt_timer, TimersState), VMSTATE_TIMER_PTR(icount_vm_timer, TimersState), VMSTATE_END_OF_LIST() @@ -189,7 +189,7 @@ static const VMStateDescription icount_vmstate_shift = =3D { .version_id =3D 2, .minimum_version_id =3D 2, .needed =3D icount_shift_state_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_INT16(icount_time_shift, TimersState), VMSTATE_INT64(last_delta, TimersState), VMSTATE_END_OF_LIST() @@ -204,12 +204,12 @@ static const VMStateDescription icount_vmstate_timers= =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D icount_state_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_INT64(qemu_icount_bias, TimersState), VMSTATE_INT64(qemu_icount, TimersState), VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription * []) { + .subsections =3D (const VMStateDescription * const []) { &icount_vmstate_warp_timer, &icount_vmstate_adjust_timers, &icount_vmstate_shift, @@ -221,13 +221,13 @@ static const VMStateDescription vmstate_timers =3D { .name =3D "timer", .version_id =3D 2, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_INT64(cpu_ticks_offset, TimersState), VMSTATE_UNUSED(8), VMSTATE_INT64_V(cpu_clock_offset, TimersState, 2), VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription * []) { + .subsections =3D (const VMStateDescription * const []) { &icount_vmstate_timers, NULL } --=20 2.34.1