From nobody Tue Nov 26 22:30:51 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=1703885463; cv=none; d=zohomail.com; s=zohoarc; b=WBHepcOb7hiwW0AnI6VgYE29xuTdV2Wt9w2on3EtIjxt/MewezeaTSCAULUAM0KmdJsTgq3/WaFnlbldBJhiOOg4tCZ0yKrFdUKPOliUXNie4+E1c0ay7R6dA01iNc72w6k1f/S18rC2NMFX+QJSX0Oj8n23MgQcIkgyCa7l3k4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703885463; 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=hi1W/QRtc07jh63VGtl4+gPGbFgx4yL88GoyzHH2HjY=; b=UU2x2ZyyZGfAbXA7ALdjA5xGqBL8FB54x5VA/MDjU2omhHd7if15MVpSS7Z53K3fyyaKYX9GT735gTU1evtnjWmHoEC5yuYL4YXRc7EbYqIM6PC3+VLa61syJq8x5VOQdl9qYZ+W/4KNhKEY3AFbBngN8692cYk/mbsdDvUvVf0= 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 1703885463146791.2387121398596; Fri, 29 Dec 2023 13:31:03 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKQG-0000Qv-OJ; Fri, 29 Dec 2023 16:29:40 -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 1rJKQ5-0008Rb-CV for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:32 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKQ3-0000QZ-8l for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:28 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-204f50f305cso1240900fac.3 for ; Fri, 29 Dec 2023 13:29:26 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:29:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885365; x=1704490165; 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=hi1W/QRtc07jh63VGtl4+gPGbFgx4yL88GoyzHH2HjY=; b=OBCITQaHTc8rHRDQa4p7NZWESC+VdVq9J4MEX1osJBzz7uY3gr00dsriqUbIktyB0K xpMNwda2pxhXWSxWvJ38XS6sJWgoWLm9i6q4ufSuHKj5yV/FgJUFZVPfNArv53t9NYnW FW+K+PwTkkvk46rAPS5eOOTdDwQgY9g+NURRrdgtCTK+SQSisPOLcM7/8m28d5JFJDun 1UpDFocu9ECbEleXKPijaBQrqlnSXenXMfjajvZTr3XD3x0tbWRUK8socQEEK38Q+7F4 wsPmWsd6vBehQtKywmUxFSXhhxd/784mTwAfQJl0A6BNOWmDoYn5Ljq2lwwl4zTpCmS3 jUbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885365; x=1704490165; 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=hi1W/QRtc07jh63VGtl4+gPGbFgx4yL88GoyzHH2HjY=; b=c5KgCt5Dix2qNUlOOeGz5LRVkNtbHxfss4bInrZwKfXOtE2yoPh2h0XkPZRqEsZF9S KXTslUqPZIvRcYwKSy2HLDesK1GPp29J0LjgFLROyH3LWSp8zFmA8Tivi6aQlM059N7t nZrRkdCISTfa8LxirQqM9hi62FKYpHZB5GAcARVFf5BjC01Ntu+96+k0dLcWEPAO58xb nIbKGNcG/b5RfJFTxPaj+Tv4pAb6btgZ89LGkazsSnSUMisitmTUsCyx2MP8p0KXhzw0 20p0uQfVYPoPxWkjqWZzbSovN7hnpw7uGcRz98Kukkc0YZz6fVCQlcyAOXsutvNkk+7Y xIhA== X-Gm-Message-State: AOJu0YwX/b0vvj5tRrKkAUZwUqoS4Qwu+yD0En/wc52Z5oAIypfDpQc5 u/yNBuJ6SmeYVnbh7Ull02bPCYhJx4doCd1KYmyESNfrxDAJdA== X-Google-Smtp-Source: AGHT+IFyp44B1XF5HFiVieUchFiqgirBcjwKYkLEdZxIaiB53sQO76/NAf+3ukF7FGeFw9KWoLz5bA== X-Received: by 2002:a05:6871:588:b0:204:3f62:a8a0 with SMTP id u8-20020a056871058800b002043f62a8a0mr13359299oan.71.1703885365255; Fri, 29 Dec 2023 13:29:25 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Zhao Liu Subject: [PULL 65/71] cpu-target: Constify VMState Date: Sat, 30 Dec 2023 08:23:40 +1100 Message-Id: <20231229212346.147149-66-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=2001:4860:4864:20::30; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x30.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: 1703885464724100007 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson Reviewed-by: Zhao Liu Message-Id: <20231221031652.119827-66-richard.henderson@linaro.org> --- 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