From patchwork Mon May 5 23:20:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 887512 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp2291834wrq; Mon, 5 May 2025 16:30:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVQX5j4ZxIXRDYBl0Cz7A3pm995Ro9Qtf7tFBj3jfW56RpoNYWEpNbD/Cyze9qiNsAJX7CY6Q==@linaro.org X-Google-Smtp-Source: AGHT+IGIsyPRjyAOXNg9eL1FqiQmKSdbCr8P895ruRzjtv67QWOkn9ifLsum7Q1b2VG41LGwE3Kb X-Received: by 2002:a05:620a:628d:b0:7c5:48af:7f99 with SMTP id af79cd13be357-7caf1163172mr153047685a.35.1746487803946; Mon, 05 May 2025 16:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746487803; cv=none; d=google.com; s=arc-20240605; b=ad+rP1nxZkcxEatq/2h+GJxXbprD10Zzd6ceYqW/d6oi5WhREWOR6XHkSyasqudpeU PnNi6vk+VsSP6NP7anUwRwWqFLdiQv/O4y1ULA6TpPdrPNvflIkrJnnB1CwK+5BTMAVr 6tqIDJRK1SoHDXQ08VTkMgFP+9CMPnvOFCA3OdAflV5Gr15jpY/O6K8zUwZS03xgBzQa DI/Gg4fdRT65mglFKDveB7GiRYKn/O8hhmhR1Ho5gjIdd3+qvhkBhCLAOlBze1nO/A46 c5d/3viILixNSd8fY81aDDqf7au2ZU1NPH2HhRXiSqpt0q+AwSAXcNgZxvr5sFxwI92u pbgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=11Q55+gMF5u6Eo9NyNW4V+s1ceVG/+YyEcTpuHMGI4c=; fh=sKdX4/MHbRvqsf1uWWiw/b4mRzIm0SRNXacICL4/ZgI=; b=eLPjIkAEhaGYm5lth1M6924PXDpKGfxyMGc2pySn7+YgPPAuFdGegCCtS6tLKnsvZB 95jCj05K9GyliAWF2pcT//NIj1aPkPky3nSjoQRSgQA1Tv2ho64zCEGw2nfAHH7TYB0s PQhSwMIPPuJsWgmyfK3U5BPYHDhvU8aowrEFoE44z4C9tHyp4b7FPPdAIs/7EfZHmcaX +zQoNL6XCei1WmfR/YNqT56zI8PF6U8ZrViu2lNgp8gIJBb3yylVQUHyFb+SLTPgiwJY /QEhEfso/YF6POjKVvta8Wy9sntCM1MgnKS5Ym1P25AoiTCa+c/5tnOL5zGZQB+wPgBR qlzw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FIJwNYRY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7cad24327dfsi943349385a.381.2025.05.05.16.30.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 May 2025 16:30:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FIJwNYRY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uC5Bc-0000RD-Rw; Mon, 05 May 2025 19:25:24 -0400 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 1uC5AX-0006yu-9g for qemu-devel@nongnu.org; Mon, 05 May 2025 19:24:21 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uC5AU-0003xO-2l for qemu-devel@nongnu.org; Mon, 05 May 2025 19:24:16 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-227b828de00so57607215ad.1 for ; Mon, 05 May 2025 16:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746487452; x=1747092252; 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=11Q55+gMF5u6Eo9NyNW4V+s1ceVG/+YyEcTpuHMGI4c=; b=FIJwNYRYwTBj3Q/gTyW8pNGmSnwYytqtF09qQ30ZNDw49SHzmEF6drBFpC5EkHxOv2 6B3fDUVaZygYSFHsTC5EXfHftK9hVl1a+6JOivrrNBw82YuiWj0RQElGuOWjiWUWSImr R0hTNHBKmCPVQuxtWjidwUGjc6XFfO6F97ATNMLI12sXn+5jHbei2kuZr9uOeGJjXoA5 d1sujtVqj+4YLarzLkD43n7E51LU2NcEo3MR367c5I19HPZG6B+NqHtEdWZnvhePMmf9 y7svRFeTxjYTZEMznYxOrIgYley3dVmZg8E7AFifTNEtaZW9N0mP4i8grtVvASmOZts8 vipw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746487452; x=1747092252; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=11Q55+gMF5u6Eo9NyNW4V+s1ceVG/+YyEcTpuHMGI4c=; b=gjn2BKF0t7rN8FtLpFmmQKv/vL4c3LUlCcLie1zS4ydpwvnr1uABOax5ytgJHU0nZa tMvFOokcvbUYCGVlIk8mphaZMDUxFbiayYr+/N0v4B/z9yNBIGPYWs5fV9Y6QGWH2e+G CeXuV4JnoqJxXSM54Z2as/sjYMK+9RiERZeDBmp4zYuPfszI9xPWdaZctlVbSwOllRyy +vZUtJppNXWCBdCNJJi4CrSJEZ8cavpsjhUDNed4nRQ+VX1qMbi2JyWoREELryvefQo/ GFtdLGDQ58HEMWuNENSldxW/HMoZqwy0Kp/ZXjBFFR7+SmJ+kmGQqalRYygkGdyRzTMY MJ3A== X-Gm-Message-State: AOJu0YxFYCFwEYJBHr1F2NcR6B9NNgFXhbNoIaZ9U0wcAb+aLLaWxlid lvNv1MyA2dA8gW84anMD30Rl0hTXNGQnxcOEwd80GYc5/wrrvQ8IBSYiOvdaD4Y6jjptAqee9uh 6Bdg= X-Gm-Gg: ASbGncu/EDCYMg9JdVVlVV23nIC44s/Ii+ddNWi8rC6vbQSRZSJ/tPEjaRs18T+qD+m Ju4MfK4Rwyo6G2s1eM61UaGc+QRf4W68n+IrCuhhDXCZMChBFmUYwYlJcMLm4KVtMNcL2jBvsrV avhoTY31rX3sZHZrBDCCzhJVk13JHn+8ImKJYE4hJA+W0S6av4YB6mQjbw2Hkuc09wL3Agsk+qF AdtPh//3qQA67z1i1U/faS0xkx6Hyu9+yyxuz88bKErx5GAmfhz1USVKWHM0cRCIQcRqPC38e/F C05iXbjrY/QVkwZ6agF52mOWvq20me4AEdDLeZ+UuOBsDUXcoVE= X-Received: by 2002:a17:902:c412:b0:220:cd9f:a180 with SMTP id d9443c01a7336-22e365b89d7mr13254335ad.53.1746487452569; Mon, 05 May 2025 16:24:12 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e16348edasm58705265ad.28.2025.05.05.16.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 May 2025 16:24:12 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: richard.henderson@linaro.org, anjo@rev.ng, Peter Maydell , alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Pierrick Bouvier Subject: [PATCH v6 45/50] target/arm/tcg/neon_helper: compile file twice (system, user) Date: Mon, 5 May 2025 16:20:10 -0700 Message-ID: <20250505232015.130990-46-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250505232015.130990-1-pierrick.bouvier@linaro.org> References: <20250505232015.130990-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x631.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- target/arm/tcg/neon_helper.c | 4 +++- target/arm/tcg/meson.build | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/target/arm/tcg/neon_helper.c b/target/arm/tcg/neon_helper.c index e2cc7cf4ee6..2cc8241f1e4 100644 --- a/target/arm/tcg/neon_helper.c +++ b/target/arm/tcg/neon_helper.c @@ -9,11 +9,13 @@ #include "qemu/osdep.h" #include "cpu.h" -#include "exec/helper-proto.h" #include "tcg/tcg-gvec-desc.h" #include "fpu/softfloat.h" #include "vec_internal.h" +#define HELPER_H "tcg/helper.h" +#include "exec/helper-proto.h.inc" + #define SIGNBIT (uint32_t)0x80000000 #define SIGNBIT64 ((uint64_t)1 << 63) diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build index 02dfe768c5d..af786196d2f 100644 --- a/target/arm/tcg/meson.build +++ b/target/arm/tcg/meson.build @@ -32,7 +32,6 @@ arm_ss.add(files( 'translate-vfp.c', 'm_helper.c', 'mve_helper.c', - 'neon_helper.c', 'op_helper.c', 'tlb_helper.c', 'vec_helper.c', @@ -68,8 +67,10 @@ arm_common_ss.add(files( arm_common_system_ss.add(files( 'hflags.c', 'iwmmxt_helper.c', + 'neon_helper.c', )) arm_user_ss.add(files( 'hflags.c', 'iwmmxt_helper.c', + 'neon_helper.c', ))