Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 71C9EE83848 for ; Tue, 17 Feb 2026 02:46:10 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vsB68-0007lP-1J; Mon, 16 Feb 2026 21:46:00 -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 1vsB65-0007kZ-Kj for qemu-arm@nongnu.org; Mon, 16 Feb 2026 21:45:57 -0500 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vsB63-0004rm-VV for qemu-arm@nongnu.org; Mon, 16 Feb 2026 21:45:57 -0500 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-354b79a9ad5so1458618a91.1 for ; Mon, 16 Feb 2026 18:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1771296354; x=1771901154; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=EqLUB8cOMzih/3XqWDNORqwTLvCyMLzydKDopUwUmiI=; b=Ovp4gzWQ+ITLDqiws/riIlvk1BAMhLQ6WhCNMJu28yGvt7mKAyQrps6ZAB8ZfwVuyq AoH3M3YtdLVL2Eo1QmbtiHDv3dsKJT+JMTTIBg/HyW/uemGu8rIWa8uDLVcqDiT4gzJB 1qD4SZxNcd11mNgOo62/jub81o1zLza1vHHbpo6z87PBhKJhY6RpmJ0y5Yg/oUFTMs4S 8duyrFmaRoG71p3XRLCSr6XVt6so4wp5dpE9bCNNbB02lfKFuRXlvams2md+POa3hxfm Jy/wXBZAhIMV2txFr7QLUD2bXxIhVxTSC/7xXTGq6OU3EMVl9YQbUBljTVCQZb5iMlZW b6mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771296354; x=1771901154; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EqLUB8cOMzih/3XqWDNORqwTLvCyMLzydKDopUwUmiI=; b=nLbbuQTyYPzofmpp0HVEkaj+p25ebJafaVYGm356xjK0ZIerXGVbxzuw+R4mV3uD3i yrA1+Y3qTGTyO1PIV9B9nIjAF0O4HL9GfBY7W9Xra15wUNDq1jkH4VqZ2luXRtlhzllE MzbZCKXGfaj768/4R76xoQAn1ZaxjDaX6eYf9UKBc6cBaL30wrI2Z9QrrQnMtEb/KLG+ oRJn4oGCTxl3F0pjixLyrtzmAIdJbpXvlf9tZmkLAwIDwlxKdDateTLU+yPtduvbdcIE WFzS/pE34DQ1EiSPphNjg+Bx2eQDeGx30cXDYdql21dnqF6MXTBbADCFw6Cs5ppMn7V8 9Vng== X-Forwarded-Encrypted: i=1; AJvYcCWVXq/mHRpC2NDnON36CI65JOBmVsdMCoWiHD39w5yFJEAkkvCEP8jClRl8hb+GCbkzfPJs9q4WWg==@nongnu.org X-Gm-Message-State: AOJu0Yz82bbSeJ7OBnBg6MkuebE+vjJQq/kd/dqKgxgGkCeoqJT6v75j Ny4le/HPSbFUjsy77NyDexbklKbsOd5iTEc+yAIUcWDkoWcis1eXhAqyUBSdoW12OXk= X-Gm-Gg: AZuq6aIEF7/ocprf5MUqLtUgvvhWfJeqyUhyoEIuhu7ZL28yIqlLZaSpPwHt0KdvkZH 5Vc4Y0/uXAmaaaRePf8aXrmQOTaDddY9CRPrDAeL4nqCP4pCHtv39DPpZogdiSdj/xk4+LpLsMP 3W7M3UzShrSu/P7pUEtci62AH8yZ8Mad/WFgAU/D0z+8jyaZaw425RzXzRT97Asvvq/U8dART9o eotRhQYECzUJtbo6VqQWkTn6Eg2HXSu1Yt3SQkydrfYHSdA3sxVfZSnU09mNiCNTb6UGX3iZmC9 DcamqYYmV5mMWXzM4hot/DwTDHGF1/t2a+rtkTxcnJ3kl3xSpgto86JwHSpZARTdxBWrwgxtFcF se3jkAgv98w1MXZHmENWBCww7A1wWr16bmUsXRFr0MHr4YZmRoQoBp5upm3Lzj+s3G8/jhsgDbW j+oHtieto6an/EpykX4+8V8Kn8w6Qxddxcx9PbwyasatWrX3KP+/bu5B72OHMP141vLOI1 X-Received: by 2002:a17:90b:288a:b0:34a:8c77:d37b with SMTP id 98e67ed59e1d1-35844a4ec0cmr10479338a91.16.1771296354058; Mon, 16 Feb 2026 18:45:54 -0800 (PST) Received: from [192.168.1.87] (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-356a6ac65bfsm8785433a91.1.2026.02.16.18.45.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Feb 2026 18:45:53 -0800 (PST) Message-ID: <87d4ef3a-5648-494f-88a1-c8e63e54b5b5@linaro.org> Date: Mon, 16 Feb 2026 18:45:54 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] target/arm: Don't use HELPER_H in non-tcg files Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org References: <20260216160349.3079657-1-peter.maydell@linaro.org> From: Pierrick Bouvier Autocrypt: addr=pierrick.bouvier@linaro.org; keydata= xsDNBGK9dgwBDACYuRpR31LD+BnJ0M4b5YnPZKbj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zCAgNeAy3gUVUUPrUsul1oe2PeWMFUhWKrqko0/Qo4HkwTZY6S16drTMncoUahSAl X4Z3BbSPXPq0v1JJBYNBL9qmjULEX+NbtRd3v0OfB5L49sSAC2zIO8S9Cufiibqx3mxZTaJ1 ZtfdHNZotF092MIH0IQC3poExQpV/WBYFAI= In-Reply-To: <20260216160349.3079657-1-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x102e.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-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 2/16/26 8:03 AM, Peter Maydell wrote: > This patchset gets rid of a couple of uses of HELPER_H to pull in the > TCG helper function prototypes in files that aren't in > target/arm/tcg: > > - debug_helper.c has a lot of TCG only code that can > happily live in a new tcg/debug.c file instead, and only > the CONFIG_TCG code was using the helper prototypes > - helper.c was calling exactly one TCG helper function > directly, and can be made to call a different function > instead for the same effect > > Pierrick: these might be helpful for you with getting the target/arm > single-binary series to compile when TCG is disabled. I think it > might be best to avoid having a single helper.h that gives both the > helper_foo and the gen_helper_foo prototypes, though: even if it > doesn't cause compilation failures, only translate*.c need all the > inline definitions of gen_helper_foo. If you take that approach > then it would fix the compile errors without needing these patches. > As mentioned in original commit, having helper_foo and gen_helper_foo was done for convenience. If we want to duplicate that in two different sets of headers, feel free to add a comment on concerned thread, I'll be happy to do it. It's just include machinery, so it's not really important to be honest, as long as everything compiles fine. > (I did wonder if we could move target/arm/helper.h into the > tcg/ subdirectory, since it really is TCG-specific, but it looks > like the machinery in include/exec/helper* assumes that the target > has a helper.h in its top level directory.) > > thanks > -- PMM > > Peter Maydell (2): > target/arm: Move TCG-specific code out of debug_helper.c > target/arm: Don't require helper prototypes in helper.c > > target/arm/debug_helper.c | 769 --------------------- > target/arm/helper.c | 5 +- > target/arm/{debug_helper.c => tcg/debug.c} | 542 +-------------- > target/arm/tcg/meson.build | 2 + > 4 files changed, 4 insertions(+), 1314 deletions(-) > copy target/arm/{debug_helper.c => tcg/debug.c} (53%) >