From nobody Tue Nov 26 22:13:24 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=1703885337; cv=none; d=zohomail.com; s=zohoarc; b=EJ6BK8uDwXsHBPVShLUCOF8ObSUZnAILjlxqY+xIKIuqlnLYzoMtA/J++14AUqJtrPkGrMLGfpVnIEwrHTk5igDzZu59TDbsGFpabe//3RCtQ+0JrRkH9pBuY/wBVjtYJWIC0ePf+PhgNQ/OGZ/lMk7GQaWERuYjYWu0g0Ampp8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703885337; 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=gT4WX0PoL92afkyPoSUzD3XqpdNjfk+jVfvP3kUng1I=; b=h4LUDKUeFW36LV05Oux5EUok53abxi1Uih1kyUnNvuPunE6vUID6r7AZazkEMDOLRe4wCQ6mxAKa2mQlebyfEME2mxGZz8Ehw3EcpQN0r3OVa6m1g4Bvcw1y7yUcw4Y39v9Uouz1/rd6lP8j/LSrtblZFUNuLK2P3JQvgj0j6V4= 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 1703885337460519.5236440629662; Fri, 29 Dec 2023 13:28:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKKr-0006qy-Hz; Fri, 29 Dec 2023 16:24:05 -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 1rJKKq-0006qK-9Z for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:04 -0500 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKKo-0005uT-Tk for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:04 -0500 Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-35fea35c432so47816355ab.0 for ; Fri, 29 Dec 2023 13:24:02 -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.23.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:24:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885041; x=1704489841; 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=gT4WX0PoL92afkyPoSUzD3XqpdNjfk+jVfvP3kUng1I=; b=Kis/vHPo+GYe7FN/5zdb9g+TVWCseXjdHFFa6N0tLutCiJ+3BDzOiNrJkkAJpjRexH p7fcbGCfTOPYB/tUa0/fVN9E//ZL1xYrcX7wXEy8FwGZqwJt1OrmQs+y5ZIRp1EipkeU dciuGnvD1avfPDdzXI37RPlT1sSg0igwyaUSpFXgCe2zvvWifTT7FceJ2eWg+gD2a5V+ F1PmGGspdskWZKM8AZiv9rsy5UXxwOmAa6C+1Vevqlwhw7253fDUoyx8Oo73KNm0sZM7 a4pmmS31IBSPOiycRW6JQr0ns+Pt+PQwUmaMitRo4pBZTUt6CigvtbJja2M4q45IxzXy tmow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885041; x=1704489841; 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=gT4WX0PoL92afkyPoSUzD3XqpdNjfk+jVfvP3kUng1I=; b=eHDcE9hjw67xTywY/ai9X96O9XIKtNbc4vTz4l4fH4ZDvZlOy8BmQe1VcnvDg88RSy 5dO3beRAyd9QxeNUHWE5CeeWXlKi8bHEeB2AzcYkekCuWLRJwtmBjCEZALmAM6dygZSR X7YiaMm2PTACwFMkJ8u8qGWGpXMH5WqYoeAmG3TLipcpf/8wOuI1yUjBxLGkhhURniI/ y6/YleJgaHXIVI6rF0Tv/VfWDxsGwSlJoKfWJm0tcBuwPWzJIt1RTcvqjOup6r1+BKkM p9iorz7zGgP/mCz41pl4B208Y32ArsBwU/w8+u6rg3xUu1Cy+lMb/lsbl9cBWqi29biy EIhQ== X-Gm-Message-State: AOJu0YyH8rL9pbnIiEDMAEmHwbk7+Uo5W0qizGZtAi386NG5wSlXobZM 5sG8Au6zR0mgn44q6QTbAgI3a1uXYLQ24kZLvUQtRB/LfmApxg== X-Google-Smtp-Source: AGHT+IFcdApuXTJ9Nidoc3Fo5brhAqt+qHCz8p/PLBRnPSo1PCokyid1Dk4FDq7JQ8ngvAQcKod/Lg== X-Received: by 2002:a92:c267:0:b0:35d:a84e:f729 with SMTP id h7-20020a92c267000000b0035da84ef729mr20321997ild.63.1703885041637; Fri, 29 Dec 2023 13:24:01 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 03/71] target/arm: Constify hvf/hvf.c Date: Sat, 30 Dec 2023 08:22:38 +1100 Message-Id: <20231229212346.147149-4-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::12d; envelope-from=richard.henderson@linaro.org; helo=mail-il1-x12d.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: 1703885338354100007 Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-4-richard.henderson@linaro.org> --- target/arm/hvf/hvf.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c index 757e13b0f9..203d88f80b 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -36,7 +36,7 @@ #define MDSCR_EL1_SS_SHIFT 0 #define MDSCR_EL1_MDE_SHIFT 15 =20 -static uint16_t dbgbcr_regs[] =3D { +static const uint16_t dbgbcr_regs[] =3D { HV_SYS_REG_DBGBCR0_EL1, HV_SYS_REG_DBGBCR1_EL1, HV_SYS_REG_DBGBCR2_EL1, @@ -54,7 +54,8 @@ static uint16_t dbgbcr_regs[] =3D { HV_SYS_REG_DBGBCR14_EL1, HV_SYS_REG_DBGBCR15_EL1, }; -static uint16_t dbgbvr_regs[] =3D { + +static const uint16_t dbgbvr_regs[] =3D { HV_SYS_REG_DBGBVR0_EL1, HV_SYS_REG_DBGBVR1_EL1, HV_SYS_REG_DBGBVR2_EL1, @@ -72,7 +73,8 @@ static uint16_t dbgbvr_regs[] =3D { HV_SYS_REG_DBGBVR14_EL1, HV_SYS_REG_DBGBVR15_EL1, }; -static uint16_t dbgwcr_regs[] =3D { + +static const uint16_t dbgwcr_regs[] =3D { HV_SYS_REG_DBGWCR0_EL1, HV_SYS_REG_DBGWCR1_EL1, HV_SYS_REG_DBGWCR2_EL1, @@ -90,7 +92,8 @@ static uint16_t dbgwcr_regs[] =3D { HV_SYS_REG_DBGWCR14_EL1, HV_SYS_REG_DBGWCR15_EL1, }; -static uint16_t dbgwvr_regs[] =3D { + +static const uint16_t dbgwvr_regs[] =3D { HV_SYS_REG_DBGWVR0_EL1, HV_SYS_REG_DBGWVR1_EL1, HV_SYS_REG_DBGWVR2_EL1, @@ -2010,7 +2013,7 @@ static const VMStateDescription vmstate_hvf_vtimer = =3D { .name =3D "hvf-vtimer", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT64(vtimer_val, HVFVTimer), VMSTATE_END_OF_LIST() }, --=20 2.34.1