From nobody Sun Jan 25 12:03: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=1769120007; cv=none; d=zohomail.com; s=zohoarc; b=BGTVilPzT3xC5zgjMLAQb5jSE8SPXCntDPTVlOcYFfCadRmhhQt8Ovl87sGBoiwFtPrIdwKvluV74nJV01qVxSLNO/PbWiLCFyjQqKQOk03cUwcCaUr3WPAbhs9oA7LCXopF5xRCtbjgzDK/Jfd76Tp2Wz9u0VuK307BggyQsGE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769120007; 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=f+A1Qhq14Gtk+x2zfD9l4IW7BZOqF5jDpsZKQLHwfu4=; b=ksKsL5L0Zh1tIFmO7OEUPTRG4BX72ptQ4uTTQq7MsULfMV8KysHv8yGicEKlpcH8MrZoMuDjhSnGAwcMRQ4pC/CKaS78hzwDOaCFWQ7Kr/C0j9Pas2Bpw/naxgC8tKTaFQAdFao+Vl8iD+KB2dUBQzngtUKqlSpUOAuLc9ytYdQ= 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 1769120007644742.6907938564118; Thu, 22 Jan 2026 14:13:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vj2tg-0006Dq-HO; Thu, 22 Jan 2026 17:11:24 -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 1vj2tb-0006AS-6i for qemu-devel@nongnu.org; Thu, 22 Jan 2026 17:11:19 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vj2tZ-0003JM-I8 for qemu-devel@nongnu.org; Thu, 22 Jan 2026 17:11:18 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-4359228b7c6so998883f8f.2 for ; Thu, 22 Jan 2026 14:11:17 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435b1e717cbsm1697387f8f.24.2026.01.22.14.11.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 22 Jan 2026 14:11:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769119875; x=1769724675; 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=f+A1Qhq14Gtk+x2zfD9l4IW7BZOqF5jDpsZKQLHwfu4=; b=YWk8668vV8ASm1hARYgO5AskvsMhEd9MXpCvuOspmAuaD4gwkIBObk2AZw0YEhKVg1 ffbqVb/DF2KyHETAUdHeIz4v8sJFMfA5Ih3/eZLIZBxCH1BmvJ4YPZmQhYs+xZgSYADJ iCSVj1dOKmWIR4QL2bG1HgLqRzFrST22WVonpoVdb7aYT1OyrjcxhUv39dDz+iMSLsuK pKhqW+ajdbPZCod0PdkTmjhDvuDLlRblBoAM4SYzTt3NN+6qvfyJRNQWwJex+fyoZQ1n FGXCHwyjr0lux0eVyIeBBX3o7On+oIPelDx7h7i2QqnqLLByTQGYZEWE8jUg0FPWqKlm SF3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769119875; x=1769724675; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=f+A1Qhq14Gtk+x2zfD9l4IW7BZOqF5jDpsZKQLHwfu4=; b=xKYeU2i8dxHcTZUW+FOq6rVuV40UiWxNesqfD7CLf939Dbz43+U2qILK6grWwAAY1p U4BGUZloRSasdvYGcHHp4IA2yAoPQQuxkbaTkhdPj+iBk5JRfMi8FW2XU4sXARhy3y7R PH4x+EiMKiuwUrv8Zx+Eq/pyyMbOzFG23qr6pKmXuiZErX/G1SAbaIyAc+T+82RZemy/ DZeSQjQFhBwsrAzekGaB4fygX0WXYATHQYBeDPENaVxVdIB8rZd+9If2vLffaeGi1pgx +RtpntafsM4zMvFp4h6jdY6Vkq2nmITPBTVDJrw8iG/Mf1m2qJjRznZairEa+bVBMyGj jQ1g== X-Gm-Message-State: AOJu0YwLaQrHTMBbnsfnQ4WIiMTkk3/mMYeD08wQPdR8nVrRzoF8wnkr y6r+ZN5CsE7k10kyBHE++sD3eLW6vpolIc1JWTOU3oN7fp4Y94GHctJ+x8TrxU6ap8pUeVHrTBQ gwQvtisA= X-Gm-Gg: AZuq6aK/44Yk1ILtnadaQNKmCmKYMPLm64PV4y3X4Bso7XkmA5894lzCC4v7e2HcBly PU5wXnHFrnnKxHf5otnedSMYZy9YCGiQ2sR2r3eHiJjIZfjo4KUUS6VS8piUsPmEZl5ItTz4TQ/ js65r16iFGF5a3hYpreEKXQXWXvDyUJi3EjkI08CQXExE2vi5b7/NadoKtJVZ08FmOh5r/KkvfF gMeO3c/NdG5sjZrM5GywIQ/PLfKWjb+V6tyojUs43K3BBdE5Pbhph4nojVQOI7TK3ZAJjgDQM+b wp/NrtMxFxINrnlTQJsXjdILST/GGG6+Bpn6aBbzc1pT8lIJMFQBxy6WLeUkwjXY7ZWtdpLQ98+ AjOHnGmPYAGN2Ysn+g4oMLc86GtuUAJH/16I95v9K4FGWamH4TMGAJ2ENb0s+8C1bU42JiLtVW2 J5WIU9uRMhc0wuOT+7o1KMBBmAlR4rZdHLtJV4tBzZ29khtqGr9iPhLfyMq6Up X-Received: by 2002:a05:6000:288c:b0:430:fd60:93fb with SMTP id ffacd0b85a97d-435b160378dmr1600145f8f.32.1769119875519; Thu, 22 Jan 2026 14:11:15 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Chinmay Rath , Nicholas Piggin , Anton Johansson , Richard Henderson , qemu-ppc@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v5 01/11] target/ppc: Inline cpu_ldl_data_ra() calls in ICBI helpers Date: Thu, 22 Jan 2026 23:10:55 +0100 Message-ID: <20260122221106.57184-2-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260122221106.57184-1-philmd@linaro.org> References: <20260122221106.57184-1-philmd@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 (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::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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=unavailable 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: 1769120009813158500 Inline the cpu_ldl_data_ra() call in preparation of removing it. Since the returned value is discarded, don't bother to set the access endianness. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/ppc/mem_helper.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/target/ppc/mem_helper.c b/target/ppc/mem_helper.c index 7318b02c46a..636ad769a93 100644 --- a/target/ppc/mem_helper.c +++ b/target/ppc/mem_helper.c @@ -320,22 +320,27 @@ void helper_dcbzl(CPUPPCState *env, target_ulong addr) =20 void helper_icbi(CPUPPCState *env, target_ulong addr) { + unsigned mmu_idx =3D cpu_mmu_index(env_cpu(env), false); + MemOpIdx oi =3D make_memop_idx(MO_UL | MO_UNALN, mmu_idx); + addr &=3D ~(env->dcache_line_size - 1); /* * Invalidate one cache line : * PowerPC specification says this is to be treated like a load * (not a fetch) by the MMU. To be sure it will be so, - * do the load "by hand". + * do the load "by hand". As the returned data is not consumed, + * endianness is irrelevant. */ - cpu_ldl_data_ra(env, addr, GETPC()); + cpu_ldl_mmu(env, addr, oi, GETPC()); } =20 void helper_icbiep(CPUPPCState *env, target_ulong addr) { #if !defined(CONFIG_USER_ONLY) + MemOpIdx oi =3D make_memop_idx(MO_UL | MO_UNALN, PPC_TLB_EPID_LOAD); /* See comments above */ addr &=3D ~(env->dcache_line_size - 1); - cpu_ldl_mmuidx_ra(env, addr, PPC_TLB_EPID_LOAD, GETPC()); + cpu_ldl_mmu(env, addr, oi, GETPC()); #endif } =20 --=20 2.52.0