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 lists1p.gnu.org (lists1p.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 335CCC9832F for ; Sun, 27 Sep 2026 16:06:30 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xArON-00038M-SL; Sun, 27 Sep 2026 12:06:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xArOL-00037y-FT for qemu-arm@nongnu.org; Sun, 27 Sep 2026 12:06:17 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xArOJ-00050c-NC for qemu-arm@nongnu.org; Sun, 27 Sep 2026 12:06:17 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68QNI8gv2091533 for ; Sun, 27 Sep 2026 16:06:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= STka7TvZ3SFCtm1cvQf3w/kR1WUAaBnj0hlnNXXJZkU=; b=jOsxDaayTKMoQsxY 44JWugiDE6hd1LgQ8iw9EoV/ylXtWYHVM8qWn1bEQeN4pEuhMuQ6IH1Ag9HGGpFI ejPkh96SNi1lUzEumi3X+WU6klXbG9IuFzFhsQlVbLYv0otzxfAsIdeYatAyZn2R q+N1uL5ZMutzwmxcAOr1szUPMXT1ZxaEhmyRmOKuxMl/L2wlLFqAKF9WoNz4RPK1 Ghso22pXJtFwQaoq/ABYlF0Yb29e4vDXR70EsLrk8pfU7cvlDh6uHrJ1ui7TG4VZ +l0HPcQDXnD/JLnk28CaBTcfdDhIjanA45FtP24psTn6QI32GL7hq6V4XBt1rMFZ bBigzQ== Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx50sbdp6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 16:06:13 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-79cdabf7d89so2525896137.2 for ; Sun, 27 Sep 2026 09:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790525172; x=1791129972; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=STka7TvZ3SFCtm1cvQf3w/kR1WUAaBnj0hlnNXXJZkU=; b=MiGSg9z13jDi0Z1kLrmukDDFJxfcOgJa9zB+8h222RQbHq7HJASi+X8uGwDB6E9xSM mCOR5M02EzYVGS+4PaJ+qrUYApQtG5uXzkr0gl2H1Ox58Qwki2aCP9aGWP1sw7ev2ypE kKXTVUyJIxXL5bG4IBdJOpu+P+8szq+hg8QDmgLxnHnHz6BRvOn8a8M2PWR7fnm1g+Z1 gmGSHg3ghELIEUScMK6MHzS5l+Fzqvbpdt5LyClI0+90Uj/zAtTSVuHAjZdAEKoZFIHM iBB6LXxfRYA2XgVQS4+1FBBvKKFKDiIEfuIQcLpEDmJaCApqgUVcx8wmhTi+T12fgMrV 9etQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790525172; x=1791129972; h=content-transfer-encoding:content-type:in-reply-to:from:references :cc: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:content-type; bh=STka7TvZ3SFCtm1cvQf3w/kR1WUAaBnj0hlnNXXJZkU=; b=CNC9wmzrSo5rksFQWpM/euNj6cYf3dmPjl/ffMWkgNzTL1ntlHkVQAfHlFahh9L/FY sqFzdVleS4QqvPSF8lRS5y1UTR14f75GzaZnD71onE0zAmGwPHxgSnZ37NtJ3BTsts62 fp9RAH7WRVtIiOn8mHoG1ZCsLxEOpI2z6OxCvCI/IRY9voaX0/mfHfP+0jGmaezjl2mN DcXkUZTUQrFjIS/aUKbLZ5WXq26vy7u2YroiLsawyLXMgTRtF+zAnrdIdFzJzizbPO9G u2T7scu2Eqvh2l/eFH4q19dzXYE74ZWFVyBM1+fi1/5Cl7F8v6NcEyECeEPBWKBfl9ck 7yQw== X-Forwarded-Encrypted: i=1; AKwUvBw4CTzcispKCAMxrs+wxZKuAGH9ERK41/HgW0UqgeASAOPD0+9ZZuBx0tYLZtA5kJArJwWyVoPFLA==@nongnu.org X-Gm-Message-State: AFq9FYKCWI3uHwX/2xRFJFMLCc53T3UjEpdD3M1Yo/hfkBdCBRE0d1tx Y9CdHbpqdwoEzPBEj3m9KQjOyeeOuTFbsDBlql0yY0SyUbIWyeM/F3KqHyQHwAAraLFl9tAD5R4 olf52iXQwrtYDliflu1HkiYKoVQJT0leW8bZ976YGNbHNjGt3xMyxduI= X-Gm-Gg: AYBFou1ZMrQP/nmSq3ZWqr6F75Oh/BU0/svp/6UddNqTSsB2GwJSQSlP2TxlSxR2eLI 4I78lcLa/Vc6w30jXuJErjwNv7f/OtdZAx/MEYTem2UO/Tt/W4Z0T3z1GcFcWlO8JX7lpe677kA NvSofNt5AzSjHMIsm4M754Mm5v86LGj57AiJDdTYT7KCDhf+A1QZCSHhW8r5meJBVf4mkaMOjOZ mxHim548r+Lx3EMexrvrxfveHNRekyISCXz088gGisZJcQohzszPpTkU2cOdc3Z4LJIxQFJHIvj Q/gX51xgpyLeZQ4ahrBREDFN1MSxYH9uCXvJBxmtpW/s1AOvAovY25cK0DKdtJGfb9hg2+FWjXg 6cekwJtiZpxtXv5hCt2f/Py6lqzElLwxaGA== X-Received: by 2002:a05:6102:148f:b0:7b5:b51:63ca with SMTP id ada2fe7eead31-7b50b516fe7mr457654137.32.1790525172116; Sun, 27 Sep 2026 09:06:12 -0700 (PDT) X-Received: by 2002:a05:6102:148f:b0:7b5:b51:63ca with SMTP id ada2fe7eead31-7b50b516fe7mr457641137.32.1790525171635; Sun, 27 Sep 2026 09:06:11 -0700 (PDT) Received: from [192.168.69.225] (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4887a744fb5sm19415139f8f.33.2026.09.27.09.06.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Sep 2026 09:06:10 -0700 (PDT) Message-ID: <816d8db4-ef58-4eab-be12-6d239300ffe4@oss.qualcomm.com> Date: Sun, 27 Sep 2026 18:06:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/9] treewide: uniquify colliding helper symbols Content-Language: en-US To: Yonggang Luo , qemu-devel@nongnu.org Cc: Brian Cain , Igor Mammedov , Aurelien Jarno , Palmer Dabbelt , Alistair Francis , Sunil V L , Paolo Bonzini , Song Gao <17746591750@163.com>, Aleksandar Rikalo , Peter Maydell , qemu-arm@nongnu.org, Yoshinori Sato , Daniel Henrique Barboza , "Michael S. Tsirkin" , qemu-riscv@nongnu.org, Philippe Mathieu-Daude , Ani Sinha , Jiaxun Yang , Richard Henderson , Chao Liu , Weiwei Li , Zhao Liu , Pierrick Bouvier References: <20260926110818.1912-1-luoyonggang@gmail.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20260926110818.1912-1-luoyonggang@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDA2NCBTYWx0ZWRfXwC7mFfQD09wJ qWwAUqnHDLezRBi/fViZahT2EXv7TCDvoWnR1ktpY3+oDNLW3cO6kn6SkFiRx2i7C6q9Mb6qI+k fj9xVyCldb8NWI4zMb3SelkwkF9Rsuo= X-Proofpoint-ORIG-GUID: Rb-5e2YVNHuyDUwUJ0k6B9CBKQhTYBbQ X-Authority-Analysis: v=2.4 cv=WuK+otfv c=1 sm=1 tr=0 ts=6ab93ef5 cx=c_pps a=N1BjEkVkxJi3uNfLdpvX3g==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=JQRrnVlyEpPTD-euPisA:9 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDA2NCBTYWx0ZWRfX7RBHq3FiCA9W zOf2NbKu3H61maDUopaxQNYw9QdYiXD+xgkBLj5am7AInLZJFzC3prP8iOmCpcf7ZkpSsULdJjW aoZMaW92Nm/69TN0hSFaFM+pQb5BiPyClqS82PFYzB2oDRXuLJj2wdnEQCyvJqpP5Cvrj6wGzYu SdlDild9wKuavalGMIFBqbP8oW4xWDqZn+5vTendu6FUAvYuALrG5GxeuQgnF4H82ZlF6broam4 ZsXRHtztD9y/Ak6ejeWpP597jd4nOgIY+EFpB5cw7NuiJA2/z6LNg/9lynKdU3U0mMnM+i5q/JA I0fkNnBjpjz6igjCWvig9RCag6Qo04/cpxty/STq+q7tEai2rT0CKdVZ9iV9w5JAnGlPMWDUhgZ nYiexQwMDGuiQlxCqSaldGVFiXlmGBgy7blyHYN9gu7yKa0bhYr8RcLmZbb14zJkwnI5Qs9U7m0 xrC0XRYlBJtc/mPlBzQ== X-Proofpoint-GUID: Rb-5e2YVNHuyDUwUJ0k6B9CBKQhTYBbQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270064 Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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 Hi Yonggang, On 26/9/26 13:08, Yonggang Luo wrote: > A combined qemu-system binary cannot export the same C symbol from two targets. > This series prefixes TCG helpers and virt ACPI setup functions that still use a > short name another target already exports. > > - Prefix leftover i386 TCG raise_exception to i386_raise_exception. Rename the C > raise_exception family globals to i386_raise_exception*, and keep the short > names as static inline wrappers in helper-tcg.h. Wrappers still call > raise_interrupt2. > - Prefix helper_wait on RX, Hexagon, and MIPS. Hexagon also takes the resume PC > as vaddr. > - Prefix ARM raise_exception to arm_raise_exception and keep the short name as a > static inline wrapper. > - Prefix virt_acpi_setup and virt_is_acpi_enabled on ARM, RISC-V, and LoongArch > virt. Leave the ARM trace event virt_acpi_setup unchanged. Leave RISC-V > file-local virt_acpi_build* names unchanged. > - Rename RISC-V TCG crc32, crc32c, and wfi to riscv_crc32, riscv_crc32c, and > riscv_wfi. ARM already exports helper_crc32, helper_crc32c, and helper_wfi. This was our first quick-and-dirty approach to link a proof-of-concept binary, but doesn't scale. Our idea is to modify the macro expanded by the various DEF_HELPER_x() (helper-gen.h.inc, helper-info.c.inc and helper-proto.h.inc in include/exec/) to prepend the target name to the function name with the glue() macro. Core TCG helpers (i.e. when TARGET_NAME is not defined) would use "core" or "common" prefix. Since you are motivated and keen in getting that binary linked, are you interested to look at this? Regards, Phil.