From nobody Wed Nov 27 00:29:02 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=1703129104; cv=none; d=zohomail.com; s=zohoarc; b=ZWydG/O7OiSA+8IMvJYKeKcFhl8Jp4E12kKDglNEuec2Rz72Cy6pQVy6tJ7pheFrRXttahSQw4XWOnnjzqD6KHbvLiOZfm+JasXFgEw2+rOEMPtuuwQViQaH6hJYSy4iJ/cMnVK+cbrs/PNLoe3tfbdUtmi2da+WxIWIFD+Sw2I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703129104; 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=8axF/F5pGDpk6KrMVCFve1EVLehnx3zt/ALRmYCufUA=; b=EN+TIvQNcFKmJ78iEBLPH0BLqVXjSKLJTm6H2BipZL5/oaNTTPaSJghlVmplGpEKzqWwA9qFF36DGXWxQv6X9MvMB0n3yf9iHFCj5ha9GPT4tW8j+pxw2sRDLvu+9lVsq+blRPJOGBcJOwxJX38EG/WSqy1NBtmq1K+FO2bMNUY= 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 1703129104279995.5438381047527; Wed, 20 Dec 2023 19:25:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rG9fo-0002Ih-Bx; Wed, 20 Dec 2023 22:24:36 -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 1rG9fl-0002De-Ny for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:24:33 -0500 Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9fk-00010U-7A for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:24:33 -0500 Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-67f3f602bd5so1857606d6.3 for ; Wed, 20 Dec 2023 19:24:31 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id l16-20020ad44d10000000b0067f7b6318b9sm347257qvl.10.2023.12.20.19.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:24:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703129070; x=1703733870; 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=8axF/F5pGDpk6KrMVCFve1EVLehnx3zt/ALRmYCufUA=; b=aQG7XlpT+0XaHqkWcV2oJgBISJsh3PP0bhKlg3zeK2i11hjXskUx4p6ZLrF+RntTvw c2++7mgoNpO0ZhEm67q4xA4pTKnowqZ90t1RSJWUovnyeukQ+xDqLrCN855zcAzcfMym hhnxBOngVc/BEXa2XRfhjhgOeOMF61JOYyri1xFoK33SUfF3ZcuEXwY6UenKGGvgvSnK 3ylg75V4bcBjWw2p6osBh10s2epTTICmPfT69Je1RQk2JSODQw0BS/b0QNhugVLItu4/ 0akFBZaylGL81U2zos8YOwtQlvtpuCbEi39r2kYIPIyQEqiAXcSSHO0scf6AAxueZmzo XP7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703129070; x=1703733870; 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=8axF/F5pGDpk6KrMVCFve1EVLehnx3zt/ALRmYCufUA=; b=nuxgOJjNmkJcjZbvxviWmTsxNbPlbytaQ4jYqPRpFvvLNcd10V9Nzdbps2z7q+UirT JHwlEYTYIDqTWkvxX/etvVMfy3cMJngPMEcDCI+ZU2TJbIiil2RGwx2CdZuLaXbLfBnt DO/hRS40ginq9itszyJEBKatgJipD6ArDfXzSqJKk/4nh4DCwCztLkMPOx/ZrALfU6Gj hk+HUAGrLn5JNigFKCJNnzDKfou6+nNZiamnaN/jStzp5oyJYW9pJo/gNWtJ/YPCXai+ IJYVkyIsbzc+vEb39xtnpHGF4Cyw7+bLcXT/AWemzULncW32PPGkKS+vfA8eJVBGXmPn jFmw== X-Gm-Message-State: AOJu0YysLCJMwm+aw/5RCgOATe8akD/yzhxAlCIC+nWIggZ4v2B03BHB /BWGyfl9Yy9vNgoFVK1NRy/uR6HxL3qxf2+ssh6XnHTz X-Google-Smtp-Source: AGHT+IF5k2WYJzDsD4q9jzr7EMgPSmbt8sbt3wzvXz4bYkly86amUzxmi4o44V2bcXFfoWdzUZ33Kw== X-Received: by 2002:a05:6214:2307:b0:67f:5f7f:92e6 with SMTP id gc7-20020a056214230700b0067f5f7f92e6mr4531997qvb.2.1703129070585; Wed, 20 Dec 2023 19:24:30 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 65/71] cpu-target: Constify VMState Date: Thu, 21 Dec 2023 14:16:46 +1100 Message-Id: <20231221031652.119827-66-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 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::f2e; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf2e.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: 1703129106448100003 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson Reviewed-by: Zhao Liu --- cpu-target.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu-target.c b/cpu-target.c index 508013e23d..430dc53566 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -87,7 +87,7 @@ static const VMStateDescription vmstate_cpu_common_except= ion_index =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D cpu_common_exception_index_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_INT32(exception_index, CPUState), VMSTATE_END_OF_LIST() } @@ -105,7 +105,7 @@ static const VMStateDescription vmstate_cpu_common_cras= h_occurred =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D cpu_common_crash_occurred_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_BOOL(crash_occurred, CPUState), VMSTATE_END_OF_LIST() } @@ -117,12 +117,12 @@ const VMStateDescription vmstate_cpu_common =3D { .minimum_version_id =3D 1, .pre_load =3D cpu_common_pre_load, .post_load =3D cpu_common_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT32(halted, CPUState), VMSTATE_UINT32(interrupt_request, CPUState), VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription*[]) { + .subsections =3D (const VMStateDescription * const []) { &vmstate_cpu_common_exception_index, &vmstate_cpu_common_crash_occurred, NULL --=20 2.34.1