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 10110CA6017 for ; Sat, 10 Oct 2026 07:45:54 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xFRmA-0001Eo-6h; Sat, 10 Oct 2026 03:45:51 -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 1xFRm7-0001EA-HF for qemu-arm@nongnu.org; Sat, 10 Oct 2026 03:45:48 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xFRm5-0004rr-RU for qemu-arm@nongnu.org; Sat, 10 Oct 2026 03:45:47 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4a0286c981dso4165455e9.2 for ; Sat, 10 Oct 2026 00:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1791618344; x=1792223144; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=6rEbUZT8JrIgjKe9a62xSWCSsdjW4XckhpXsYtq7+MU=; b=h1gM6/ESiDKbG3Z5HZtz3Ig2gmpRW284aDnLGTRWozvU3Gf88GVcnBICcWAlthRAAk lLJazlCwJVwzJtDcKW3Uy2abYlmUJINsS5bHzFiYAXUvEiLn216OHT0qA/zRCqEBl5Zp j8Sv0c+UXS0hfiYOw4XndxxiGOfj966cizJrepiZgDMAAK6MnWFgQCNihB5fD/HMAZJW JUNrljmAPzQA/eIJGXPaaRkqqBYcRGygEhKFXyRudLQLYy2PTqZ5zjg0//2P4mTmMxdt J077tUSp9q/cdPJnGEOlr0ClJO/2wYoJ5FE1fL0UVij+rgwssBh6SwW7by951A0MuqV4 Lr3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791618344; x=1792223144; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to: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=6rEbUZT8JrIgjKe9a62xSWCSsdjW4XckhpXsYtq7+MU=; b=OnFHFwFn4WdAkUbMYuEL13LrtBrdez9Wz89ab3httsouKcL5m65Iv3o6tvLHTE/bPT TaHtyVdkvX8JVtK0LtgRSYhok/nvJ+a+FH/2AHBhJO8W0cWjzgUdnBgVmaFppJxy65QF TluyXS4ik0xKCZauKAgGLHCsHJeIifV0HBJeo/BFcKvaYWeTH44YwwejtyddR9dOpD01 HIQHXK2iNlQlw7D8r0eQgedokXlMH20YRiW3NANbo0a4kx1acwtcuTsa4EopDsKpESYa 2zaV/JYVu4HqY7vtvOb2tA9PZgSuYmiEZLkXuk5fIf0vA9462389rF38K2ZMoAtz49Gx 3O4A== X-Forwarded-Encrypted: i=1; AKwUvBzq00a/EfBfFmAaA10TDidFJ6HF2Fm+LRZkCPrsSEpTtlT7xAjzNjlPkKwAJjNLao4pUip5ZPuh5w==@nongnu.org X-Gm-Message-State: AFq9FYJflxwinzNYRrtSn/O4QINhXJWs9K+xD6TdX5kbsMDgo38Mt1r5 fKyYPlVH2NboQ+4myGLCP/NtwludVlBimUOLJmXZ9fRRbx24yxPx2ZMh727DbXhB0Ko= X-Gm-Gg: AYBFou2J2ZKn4Rzx/NuE0s7gLXx3jcIK8vbgFahKS2WkNNTkO2gk1X3awL+ILLacvHk 1kNT9md8LtSJP7MUz0BSfARBqvqo8QwUmGsehatt6mNBVkmNJW98OjJuPeUq2n8LsVpwLNCxkti fq4F7ijQ+ZrnC8geNwWJmmkA7jD9s2vRrU+jHtzvPOtwCwVm/c190usf3sXG9Uqpq9Tr39CROFh q4cb8IuZulsqpQI4ZwsCjcKGZefOTg+FDos7ABS2s3kQr2bikhQuCdkWnVaiSHBvzwSMiT3YVtA /53gUFFWcicxFtb0iyGzxinlvP0tVv0wLEwCQkmpPx0Gxm43z5NswRNP1pwUQp3HvypwJnaJQvm XfpPYNaYulWDO8MhtXhCQ3Ww7n5huhdcjFRSVVKVo3Z8dIG4aJmoeytBK/TKSLKaCIbAsevs58z fJMVy5Xoj7rDe3R6RNxn0EY/1ub2aRL+FbZ//6pJFOheirTpr6J3t8y/Bkt5jIsfTPW/GGfF6gs p/t35b4dUKkwceReQ7WRCGMqKGlZjimOaIdlrhiS1IypIw1d7VFHOI= X-Received: by 2002:a05:600c:4ecb:b0:4a1:6916:798 with SMTP id 5b1f17b1804b1-4a18e4a3f69mr77392505e9.14.1791618343890; Sat, 10 Oct 2026 00:45:43 -0700 (PDT) Received: from ?IPV6:2a00:1e:e082:2901:a2d3:66fa:95e6:7d81? ([2a00:1e:e082:2901:a2d3:66fa:95e6:7d81]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48db9462ebcsm8451254f8f.8.2026.10.10.00.45.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Oct 2026 00:45:42 -0700 (PDT) Message-ID: Date: Sat, 10 Oct 2026 09:45:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/6] tcg: namespace target helper symbols for combined builds To: Pierrick Bouvier , Yonggang Luo , qemu-devel@nongnu.org Cc: Song Gao <17746591750@163.com>, =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Alistair Francis , Peter Maydell , Paolo Bonzini , Weiwei Li , Sunil V L , Philippe Mathieu-Daude , =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= , Jiaxun Yang , qemu-riscv@nongnu.org, Palmer Dabbelt , Daniel Henrique Barboza , Chao Liu , Igor Mammedov , Ani Sinha , qemu-arm@nongnu.org, "Michael S. Tsirkin" References: <20260930073935.712-1-luoyonggang@gmail.com> <20260930073935.712-5-luoyonggang@gmail.com> <374ba010-b530-4310-b20f-65ada56cda6b@oss.qualcomm.com> From: Richard Henderson Content-Language: en-US In-Reply-To: <374ba010-b530-4310-b20f-65ada56cda6b@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x331.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 10/1/26 18:51, Pierrick Bouvier wrote: > On 9/30/2026 12:39 AM, Yonggang Luo wrote: >> Use target-specific assembler names and helper metadata for TCG helpers >> when multiple targets share a binary. The generated prototype maps the >> generic C helper name to a target-specific linker symbol, for example: >> >> helper_raise_exception >> __asm__("helper_i386_raise_exception") >> >> This lets target helper definitions keep generic C names while avoiding >> linker symbol collisions between targets. >> > Hi Richard, do you have an opinion on this patch? > > We are trying to see if we do renaming per helper, or if we introduce a > "generic" way to deal with it. I don't have a strong opinion, renaming > things or adding more macros and build system soup are both ok on my > side, so direction would depend on your culinary taste. I think the general direction is good. Perhaps the specifics need adjustment. In particular, using __asm__ to rename symbols is suspect and likely non-portable to non-ELF hosts like Darwin and Windows. r~