From nobody Mon Mar 2 10:55:53 2026 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=1772121518; cv=none; d=zohomail.com; s=zohoarc; b=Rw5M6vqSZegMr7ogUJIUe3JklJbBkFp+1hFPsVlt0e7GS2s6IeLccYfsUWGlvvztqLztK4oc4EpubIdhFLEbT1A/gbq5Y+w/MVZZWG9MKpkPM0AP3iixEHRMEVBw2NcZw1CqyfmPyicrKz9aL2jXeJc7Ethe+BwQ75k8k4P8wss= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772121518; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=72QGaHRSSUmNZ4fPR2Rby3J+3BzAqdEiwb7T+/2jw7g=; b=idsep+n4KF3etoexw3e1NwKVYLeI/Cm81Jzt5wXoNH9ycq2hnQP48DbXWieX1K37yFFXQ0RKFqm0Y6Pp8YHU4nzKjsnP3KKJSxkv6ozRZXNE0ppF7CMagjFgzttE3/g4ZmTXtHGM23tPGnt6lS7Lo7bQcD1crJEl6BBYG8ezRVo= 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 1772121518565989.5768293310335; Thu, 26 Feb 2026 07:58:38 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vvdiV-0005OQ-7N; Thu, 26 Feb 2026 10:55:55 -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 1vvdiQ-0005MW-2T for qemu-devel@nongnu.org; Thu, 26 Feb 2026 10:55:50 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vvdiO-0003lD-Dv for qemu-devel@nongnu.org; Thu, 26 Feb 2026 10:55:49 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-439857ec679so900151f8f.2 for ; Thu, 26 Feb 2026 07:55:48 -0800 (PST) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4399c75b8afsm407235f8f.23.2026.02.26.07.55.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Feb 2026 07:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772121347; x=1772726147; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=72QGaHRSSUmNZ4fPR2Rby3J+3BzAqdEiwb7T+/2jw7g=; b=AAhpa6igk64L/lkF0NLVBYoBABU3dAYuwnLJjBNjXcABovVlAdZwZzQSkpZL+Wbf0/ 7OAuZQ2WyER/ekDk+bcy+WEDOAR4eJbskyv2ITJUPYU+mfThGbtcxs2DRD2oQJYr/tAP b0bnBV5nBxJf3LH80b7yoxFOAHOu7jdD0VV3EHIC5yw70P0qYGAoBmM9Vx2my68kdINn 5mq18XY0NlVi7X3VDdFnhrrLmJfAwmY1Z0sCcPJppQmDK4uzw4OCk9WIr0PWSweNEzI4 jyHy9xK4pjiqa5k39ut/pLEFrT8QRCVBQe+Wk5Ak66b+FC1qDfxGktJ0dxX6MHbVc81u uHRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772121347; x=1772726147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=72QGaHRSSUmNZ4fPR2Rby3J+3BzAqdEiwb7T+/2jw7g=; b=URmOmru49owkmBKSNZBnbyO3eWnV3QuHeHhOTKJyN2wOCrB/joodcs6J1dfIWz0ebq gtj71vXIxdC1OTmdTTB7wbcUnB4MF7x+d+jkPMdtuCQdPsZVubA2zHYcLLbp5YGYDDji 4QdztVmlYTZa3fq+9Pq0KaHr/0zJcCMZt/SiO+2WsNVTZHPUzvQoIC3tinLaPGfsBZWc T/NFSc+jrRjpOlYIPCD+X1oD0LzuWMuwtu64rvry45qVk65oM9EvF9PHSSIJRNXY+Caz 0MajagWuLiKS3KZDmUZW+BX6mCHlVN9DCbqj31s2r/QN4HiCRvo/h7avcD2cfAK3eMTD O9/w== X-Gm-Message-State: AOJu0YxhDNhrGHfRxul9yQCp45DGKsz2bjZpmK20EQhQFPpWMeuHIbHX BveVWfV/QdVKXspFO0VbITuUmY1eLP3QAUiUQ1WHuObHvDnPh7Su8BwrWjPIjhXAChDsocYspRN Az2Op X-Gm-Gg: ATEYQzxjbYR6aKvVS2hv5VcmkDwZQ7+5njLSJKYJu5pbIjAwRcb7FtWVJywOK8Y0b0W YBvqOGyZ7wL7V5fiWwYkz0gvgYzINCow/3KSkXrZcnZ5o0VIHmsto2edu32xWxuljM/ypmLGcIH 6JkOjRTQ9cR+LweAQConjOPPQN8YuN+YskbITd90xTA6N5QjrX2UP7R1Cqk9nQJKtnf+TAoznHm yxroH45FlBCZd80LaF8fi2ETk3hPBLeskgM+OskLTisLJnTyZOFMjDRaAkyoW1wsSDWxG+FHEBk gKkuU1xBM0hxIiaSeJ+8SJIxi1u9LlIJ6MIbfKQ1kLX2/CaczqzjXFfrbqdu5Kd+5PVYnPiFEpV 2RSEh93AeAE8Zgju53pa7C09MK7IGGeF2HXO9bfia5D6iq6ifBET5dU25Zq/qnXxbxdFDnovYB5 a885pqp0ODIuPkdwQIP7SsJg/lq1d0erGrhnso/AakgfCaA7SVoeZeBW5zFvh6K1H1cbEbAB2Ho e5QwEOTCuIvSFN7BNj/OXWbzsBbcBU= X-Received: by 2002:a05:6000:1866:b0:439:8580:18e with SMTP id ffacd0b85a97d-439943083f6mr9034507f8f.55.1772121346761; Thu, 26 Feb 2026 07:55:46 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 09/20] hw/misc/allwinner-cpucfg: Remove use of ARM_CPU() cast macro Date: Thu, 26 Feb 2026 15:55:24 +0000 Message-ID: <20260226155535.1171290-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260226155535.1171290-1-peter.maydell@linaro.org> References: <20260226155535.1171290-1-peter.maydell@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=2a00:1450:4864:20::42b; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42b.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 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: qemu development 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: 1772121520449158500 From: Philippe Mathieu-Daud=C3=A9 allwinner_cpucfg_cpu_reset() doesn't access ARM CPU internal fields: no need to cast, pass a generic CPU pointer along. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Message-id: 20260225034720.41495-1-philmd@linaro.org Signed-off-by: Peter Maydell --- hw/misc/allwinner-cpucfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/allwinner-cpucfg.c b/hw/misc/allwinner-cpucfg.c index 3a1526bda0..f8dbfdd120 100644 --- a/hw/misc/allwinner-cpucfg.c +++ b/hw/misc/allwinner-cpucfg.c @@ -84,7 +84,7 @@ static void allwinner_cpucfg_cpu_reset(AwCpuCfgState *s, = uint8_t cpu_id) =20 trace_allwinner_cpucfg_cpu_reset(cpu_id, s->entry_addr); =20 - ARMCPU *target_cpu =3D ARM_CPU(arm_get_cpu_by_id(cpu_id)); + CPUState *target_cpu =3D arm_get_cpu_by_id(cpu_id); if (!target_cpu) { /* * Called with a bogus value for cpu_id. Guest error will @@ -92,7 +92,7 @@ static void allwinner_cpucfg_cpu_reset(AwCpuCfgState *s, = uint8_t cpu_id) */ return; } - bool target_aa64 =3D arm_feature(&target_cpu->env, ARM_FEATURE_AARCH64= ); + bool target_aa64 =3D arm_feature(cpu_env(target_cpu), ARM_FEATURE_AARC= H64); =20 ret =3D arm_set_cpu_on(cpu_id, s->entry_addr, 0, CPU_EXCEPTION_LEVEL_ON_RESET, target_aa64); --=20 2.43.0