From nobody Wed Nov 27 12:58:28 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=1699254799; cv=none; d=zohomail.com; s=zohoarc; b=UI8MQ/runTXkwmnBwglZqTpHLbQC2/zFgz896anI2tCC5FMePeCoBxs1lBQOL4zwScV2G9oYhJNGizE9MTHQPEsF9mzkarWovXtxrXpzWDTkbpFcKRgqjgOnyeGqYW6jEsBnJFtW5K3CVfQTHYxdHYCJPsEw8u0ifnzswAidAzo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1699254799; h=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=cigOVxgg+B2yxtbKQ8IseMLL4cIZebVeVVStUQxgnpQ=; b=XA7Vyh2AVWU3xzTCHTH8P63AxohR9kc3IvM5s6DgFmfxlYpsaiqrb0vQw+crYLPkVUmu4t/b6CfVwyTIuxN9Dod4+irr2zBSTbrfHLG8+i1orGZo1MCIvweqZjIWEJ7qGXN9OdvgVSS3kR1KLGPgqkCzVi4rv0mZUFoK9Xikfhc= 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 1699254799357632.4863256788218; Sun, 5 Nov 2023 23:13:19 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qztgA-0006vS-IV; Mon, 06 Nov 2023 02:05:46 -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 1qztdD-00017v-3P for qemu-devel@nongnu.org; Mon, 06 Nov 2023 02:02:46 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qztcw-00021i-Eg for qemu-devel@nongnu.org; Mon, 06 Nov 2023 02:02:37 -0500 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2800c221af2so3994741a91.0 for ; Sun, 05 Nov 2023 23:02:25 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id 8-20020a17090a194800b0027d88387287sm5319650pjh.51.2023.11.05.23.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 23:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699254144; x=1699858944; 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=cigOVxgg+B2yxtbKQ8IseMLL4cIZebVeVVStUQxgnpQ=; b=Y+F9p4UuR9yfjkWKz5OV7givVHkHcrEF0xUQNp9U/ZzQ8eODhfOYJI9P8UbYjUL7nc ahz1Q7K6Qz9wewjaDoFcFHm/EWF/OwwKOwZH5mP/RSdJ5JxqeNTJkLiJLU09Uz50Xlxf EAm+aV4HnjnqQV8FUsoCf1YGLEuEyzgIF1xw02oPRiIqkF8XTIPHGJs/dGhuwdZqopvj WV/Ag6DgLYVdshhnzzbZzJS/MENJseJvil2mdNkVwtm1k/T+d3O6OPUzAFVcTp+CUZjR gK+vl3gFzW23kPJwH/zhHHLI6gKEQ9K4D+v18++WDmYNmi3Qs/wvX0fsKRioAMz0y4Sa o6Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699254144; x=1699858944; 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=cigOVxgg+B2yxtbKQ8IseMLL4cIZebVeVVStUQxgnpQ=; b=sK1q2R24CHX4Q66ASGImQpBwObeQ15wwgovlXXV0td55cO9QEJJ9MCyu7Ojm3b9gAy 7VJioojcfvEBZZFPyG5EZOMUhHRnDR2FpiDd9nFEd7T/ui8lhpmq0ZxeM7RJcaSIBApg 4dmJfn08ac+mnNdScHm9R6EyyBARWdCZ+McxtJz87japxoZMps5a/loqXeVaiT4cqu4t w/B4oWLlC/EpskO/FCsWdnNMdxFa68ukimaEZmsbxUU3ly0PY6jXbG9YjVWSdHJpfVed qqsI0fsgUWZb6yadyh/J8TqDqJ22VT7J1vnZWfr5uOv4EAySu7clJHHwUDSB02UzFaRi lcwg== X-Gm-Message-State: AOJu0Yzj8G4sTdonBlJ1JRIp6IEDqd8KIOo5V1TYC0U0iZonOL8LC76A VdvNxgODR8BfD/VfBN0ifWsdM5G1u97d7TriBo4= X-Google-Smtp-Source: AGHT+IEhA5ET5ONb69q6lXwIDR5edG5R9zRWWjFjz4DYLSEROk5XZYTaKBvKSwP6zxUjGvUtnOSKCw== X-Received: by 2002:a17:90b:4c8f:b0:280:2609:6d51 with SMTP id my15-20020a17090b4c8f00b0028026096d51mr18393504pjb.18.1699254144726; Sun, 05 Nov 2023 23:02:24 -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 65/71] cpu-target: Constify VMState Date: Sun, 5 Nov 2023 22:58:21 -0800 Message-Id: <20231106065827.543129-66-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 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::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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: 1699254799674100005 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- cpu-target.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu-target.c b/cpu-target.c index 79363ae370..c16b8942d6 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -88,7 +88,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() } @@ -106,7 +106,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() } @@ -118,12 +118,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