From patchwork Mon May 5 01:52:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 887438 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp1825331wrq; Sun, 4 May 2025 18:59:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWJ/Bsw2Yn5qrvm1wu6iUdes4ODaSK+SCtnoEwuSOkOaGONz7f3tV1laggr48/lZVRqT56dAg==@linaro.org X-Google-Smtp-Source: AGHT+IHSxMcwDSYiBWO39J11K4gwqVwFpwccgmN5yg5pnHpwv9HTezt5P1FnU2UGDcGutgYnB64m X-Received: by 2002:a05:620a:240e:b0:7c5:48af:7f99 with SMTP id af79cd13be357-7cadfea801bmr945019385a.35.1746410371506; Sun, 04 May 2025 18:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746410371; cv=none; d=google.com; s=arc-20240605; b=NtDNoiGz8WSZeHjey/DELqCW+bbl8f0Am7y4OdfWQ/t6zkXjnIKWzhk8bdpO1+ESJO P7Re85//6iHezzS/udqo2agKMdhUg3ZnojWiNaZyMw0F6pTYHuR6mlztSV2MtkAhGXdJ KhC7WVEHjrd/ywgoOkg3XLU5rfVsNryDs9XP72k+fjo2EIjeJiaMM6c2BWyI95x0dapQ NNx+fZYIr7RTAqfhRmRioRDKU2RmvoLSYNcXzIoYkvaPPb0CB5YViBjATu8J3pBcUMC3 9JRr33JVdrEHHoENOGyLzzi1V+m5L803xnQTX3v3PvqUX5QLzEx8cFtSLJUEdQRyeIkE ayfg== 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=qD9vVqLBGjput0IZ+F6o4hs3gsnwUP4nuOaAH5o+vHU=; fh=NjGqp/B1Bwp2wtTnyHxTvlXYBfwRSGY9cE7hmKIZquY=; b=VFWk0bz9Lsf1gpsgPl4V8vhe2wl/ah4PV73fSHNR9C1nYUBjPf0ij1wBPKczPqUqA2 xLKyJZebJzdox9r/FaE8sPy6Mlm2FzWtwYcGvyl8GO/LnwD42NtScAjrhgKXJ+Liphlv qsX71knauTaxr8pS2mgiakbGG1PxXnOpypKJxUGN4Rta0gkkppCM7BrP216F41ruUWcx /FB0OE5aHHuc8wSZQMZJeuhI+ItOhSe1xZolQASMd6RNUjPAu1QB7XfS7H6UWKzWo8dO Degk/YbqwxBTMoAEpmv8dBa+nLJLs7xaxhc2ljUWhYN3BVJSHQM16JOTC2AGSsgU+WjN jVfg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ao0qQc1G; 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-7cad244a496si800979985a.578.2025.05.04.18.59.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 May 2025 18:59:31 -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=ao0qQc1G; 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 1uBl4Q-0002QS-Su; Sun, 04 May 2025 21:56:38 -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 1uBl4I-0001ih-Qj for qemu-devel@nongnu.org; Sun, 04 May 2025 21:56:30 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uBl4H-000367-6Z for qemu-devel@nongnu.org; Sun, 04 May 2025 21:56:30 -0400 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-b1a1930a922so2636948a12.3 for ; Sun, 04 May 2025 18:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746410187; x=1747014987; 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=qD9vVqLBGjput0IZ+F6o4hs3gsnwUP4nuOaAH5o+vHU=; b=ao0qQc1G8PNN3hwGDOMobqxB3K6g0JM3Ew6/jg+p1J9BgyN3cR2wrFlyyNYwghwBYE 6AvP1xGvTwnkAII7kJGMecK150Mh63V/xdyNhkZ3hd5vmHSc3TKNvsS0dun8cqAFR7N7 pfG/FWUVHbG/4cIhhe64UrnxZwweVcXG88iNR4f5Fm8oHMoU7Cbz/bsyFsncLbXa59DG MSUYD6L2/bz/hQPmF6Wjw/QTvogR1UAMX1iQGVl3HzPAyacCKNkSX1/1qe3xVYK+H7eN 9JdUfcQH91gD2HmpRg4ESEYLhE2mS0wD12wm2ypZEr1cSxz2le7xiEFcdxokY2YfLSJC p8tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746410187; x=1747014987; 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=qD9vVqLBGjput0IZ+F6o4hs3gsnwUP4nuOaAH5o+vHU=; b=lF3jdrpUDr664oKeJeH7qLpoY/jxna9unQ3dInI4zTc74WuVp/78CI1w/kNj80+B24 GKC8OFf+lBkGn9BuJ4XZ27ugnhtszCuRd9oEdq3Rj4j6SYqfktwYD58fXr/kgo8hNKdi iua79tgQPSW9VijfY+4LYqE2mqrFP1j1PDciT9AEgJcw/OJPKjegfkzgo/HmXVXTXA+x t2cmeb1pZz7LRaLvthPkZT6y5olqZXctxTsmYeciFAbDJb3gF56jlTjO0sp+Mh/GljIS QMdKp8ustf5DnyN89+bRA00C70g96YEl6aqsSze4y+3BWpumukBpqFrxj6OW3e6rB2Op a5AA== X-Gm-Message-State: AOJu0Yx0PnSNnpg9de6ekzU17IxETeCUJbSGVE0va/xxpMB/WUj4yFUq rjVUJV7uwTSFGkViwCAl+c1gc0VuTqOKN5W1JXsWIO6JO6PP8u4uyrZLEVPioYh91Pe2JSvF6cL heBs= X-Gm-Gg: ASbGncvV2r70Mty6R5pP0qAAbS1SzvJ3Gg8WQpfnaZJwlsh9D+I7O2Axvbi6su1hBpU iIpl8JwIMPxTY8R7uEH3snVyCrR32/3AbTuDqKeQVMwixJn0y3fVUiVIn95oz+rwoRRzjutHZkE kNe8FJalI/frW+o+qbr/01JrFAWxEYuvDizQiexYsmvACQlK5gKVsmqTSO+n35Oo9i3h3b74FLu vP5pBp89rtrMQ2pUqNll7ps6HqIvoAHmSZaPBrcciRCwP9CIKN81XNplZ6i6fdA7zDv8cU8g3Ja RCfMsDAWfxj5QYRC8oTT678MJgRHg9cZARWNb5Cf X-Received: by 2002:a17:90b:5830:b0:2f9:bcd8:da33 with SMTP id 98e67ed59e1d1-30a5ae599fcmr10633990a91.21.1746410187712; Sun, 04 May 2025 18:56:27 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30a47640279sm7516495a91.44.2025.05.04.18.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 May 2025 18:56:27 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Paolo Bonzini , qemu-arm@nongnu.org, richard.henderson@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Peter Maydell , anjo@rev.ng, =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v5 44/48] target/arm/tcg/neon_helper: compile file twice (system, user) Date: Sun, 4 May 2025 18:52:19 -0700 Message-ID: <20250505015223.3895275-45-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250505015223.3895275-1-pierrick.bouvier@linaro.org> References: <20250505015223.3895275-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x531.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: 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 Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- 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 3482921ccf0..ec087076b8c 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', @@ -65,9 +64,11 @@ arm_common_system_ss.add(files( 'crypto_helper.c', 'hflags.c', 'iwmmxt_helper.c', + 'neon_helper.c', )) arm_user_ss.add(files( 'crypto_helper.c', 'hflags.c', 'iwmmxt_helper.c', + 'neon_helper.c', ))