From patchwork Mon May 5 23:20:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 887499 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp2291347wrq; Mon, 5 May 2025 16:27:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVAMdwqR5o4jgD2rXEsDhz4I2tcud/kRXyk9EQQCK35FN0llR6ryonso8uUqEqq4ALwMkmdjQ==@linaro.org X-Google-Smtp-Source: AGHT+IGeKqxrfSDt6xTpTe0ZZljRu1VxBXQUbTL1l+IqNUnai9T7wyIGZDqx/Us5CCTNrn1yWJgz X-Received: by 2002:a05:620a:d84:b0:7c4:bca3:6372 with SMTP id af79cd13be357-7caf03cc346mr241503885a.0.1746487675798; Mon, 05 May 2025 16:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746487675; cv=none; d=google.com; s=arc-20240605; b=RCXubzKy4mI8Ttf55j2CmtsF1Us7/x+Nq210RTe812sGHWTq200Nu+1bUcSBzvnV/N qONsIRtDEXOafkTP/UMLGpP6ymnXKP5tnVh4DT0wwoJu4PRi2GV3gbiVzernwe/RLt6X OvVpVfytJN4AUeh1ZVxd+63rc4za7E/T0ST3ZeBqQ3aE0GWjv6PMazPwN/F18Zaei8VF wH0PyBOaua7kZBZXEUJGjuA1K0lCRao2T4Y2pEmGWx1t+es671n8YfiNeOzn9tuYYtCW dy5ZNG1WY1rTCUSUF42SKtIWVKKh+lPoxlDnj8mEs6I8gRlUH/LSV6q+YY/aPKNPL9/E l3eA== 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=D50FgSNi0pKqcQ8O05hlTOFeOSvMmvlw2mBrg4KVMZU=; fh=sKdX4/MHbRvqsf1uWWiw/b4mRzIm0SRNXacICL4/ZgI=; b=OMTPkOGnITShxm2pKbPLSIwtk6Y9nfEjplL2YjCODxkiQKgURVBCFXlOutDoXlkYcH Wvm8lnfEMzPGF5dQgAjLmVI/rAf8oFod/5eAcBkGqXwVou5ZRvhw3+6ZF6Ln0h3GWJ3I 6p5BDhx+ErIXbsfXA7CnobwfXKTV6LqzDp+mVfwVwN9KC3Z80gG66SwBrJxO1nA0nFc2 dvQt8VAsEN911Ny5+FtySv81edD8qtTUu+Ecx7n3hAWQa1w1gT0VHrG4Oa9O5Wixk1CQ +vLDtCPglP2lKt2aIS6iJDUH1EGnMNK1iEuBdFznKsJ2wln4CESF7g0GBpAuObx9KxQb qTHg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VkpOuLla; 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-7cad2448381si954161985a.557.2025.05.05.16.27.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 May 2025 16:27:55 -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=VkpOuLla; 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 1uC5Ce-0003nN-MC; Mon, 05 May 2025 19:26:28 -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 1uC5Aa-00070g-NE for qemu-devel@nongnu.org; Mon, 05 May 2025 19:24:23 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uC5AY-0003z1-Qt for qemu-devel@nongnu.org; Mon, 05 May 2025 19:24:20 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-223f4c06e9fso45737795ad.1 for ; Mon, 05 May 2025 16:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746487456; x=1747092256; 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=D50FgSNi0pKqcQ8O05hlTOFeOSvMmvlw2mBrg4KVMZU=; b=VkpOuLlahY/71yxxiojUFRbPOeHhF0BdIFzY68gzdxDJUcuDm362mDkW/lhFCUVEKK KhgyTqDVmcwIejwwI/1bCsHUL1i25ugq/gamSC9f8ML8h8QO5EvU0D4KyR+THozdqfGX OkfYrO8aV+XfRylTdVaMvCgwsM/SKiG/ZVt9GJpClkhd1dJHDXip6lOYOFjH/bGvXlOy F5xSklHnGpbO34CgLmnnT/tYr5PEdoFjNuyVETXSJysLXbdxOJ8PDoW95DqNPQTMDYQZ ADQskctt2Qv6z6HstpNuSnZQDeHvAuPFwHjh8kEpBTplkqnhiwwfH66iKYXvHMg6WIKt Cxdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746487456; x=1747092256; 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=D50FgSNi0pKqcQ8O05hlTOFeOSvMmvlw2mBrg4KVMZU=; b=viAwe88S5SGzmH+XU3whTMwQ7YwW+ezyTqNjrkl4za6qzWQBa5HCKMqCe1+e4lD/Wj Rjasd2uksCyXsQczqQamOc91zwBW3pIiMNWZ1sWn2mc36oUOGzi3D1m7FIFBjKoxEaoi ku8j0l48cyBgnjf/ZE3PvnLX4KlHHzjExdTjAHiTw2915YUTo2N4CSH6gDYptLxY0TmC ueRhDMxvTswAKDHKzV2sDsunUAVT4dt9+OZmlmdXoZORpeyQR+NXLaabhIFCaNAgt3k8 +M1I4A94W8AvBuVYazdU5eClADHeUfaNnxEyEP3YRRRgwpH7wdElPdBRmUx1NRvvVVId G2KQ== X-Gm-Message-State: AOJu0Yy/mXUmgMXrZBbNeAXUqkBouk5896/ktgRLDheDL/hfBfeXT0Oq k+W7myNEWXWh2di/nPNmYa+RI/UAgr1wwnwGEXiwvzaaDKtD18gCY0Hbkl51MV2JbODXLIX8Hk8 RST8= X-Gm-Gg: ASbGncvMWKu4arxApiQITVmetIY8kGHbU761sx2QkYL0CWFUs4gq9z7gGk+4X+23zCx qyYe5ygXcz1QhKoBVd7IUNmdf/A9nI6wZwrQKnBPB52Us+6sxF7lhADnS0nTjNhG2VFQvN5Kb+3 ohsISnDoQg6RpwKXPNhpiACLeEhiDZKicns7Y760qGc/wat9jqE4SluqbmG0iu7Xw7ESDcqVxzC I9iedDEulMVIC8W/BekdrOml+XAHpof2Uo9h/FrFcYkHFcF6de2/ZCU0ns0GIxqrnpCfAkxrcPn QgXxfvBdND5f0eME+Sk3id+3V5vmH4BWRQlHEaVE X-Received: by 2002:a17:902:e5ca:b0:21f:53a5:19e0 with SMTP id d9443c01a7336-22e327f74c6mr16808835ad.12.1746487456046; Mon, 05 May 2025 16:24:16 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e16348edasm58705265ad.28.2025.05.05.16.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 May 2025 16:24:15 -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 49/50] target/arm/tcg/arith_helper: compile file once Date: Mon, 5 May 2025 16:20:14 -0700 Message-ID: <20250505232015.130990-50-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::62a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62a.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 Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- target/arm/tcg/arith_helper.c | 5 +++-- target/arm/tcg/meson.build | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/target/arm/tcg/arith_helper.c b/target/arm/tcg/arith_helper.c index 9a555c7966c..670139819df 100644 --- a/target/arm/tcg/arith_helper.c +++ b/target/arm/tcg/arith_helper.c @@ -6,11 +6,12 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ #include "qemu/osdep.h" -#include "cpu.h" -#include "exec/helper-proto.h" #include "qemu/crc32c.h" #include /* for crc32 */ +#define HELPER_H "tcg/helper.h" +#include "exec/helper-proto.h.inc" + /* * Note that signed overflow is undefined in C. The following routines are * careful to use unsigned types where modulo arithmetic is required. diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build index 5d326585401..7502c5cded6 100644 --- a/target/arm/tcg/meson.build +++ b/target/arm/tcg/meson.build @@ -34,7 +34,6 @@ arm_ss.add(files( 'mve_helper.c', 'op_helper.c', 'vec_helper.c', - 'arith_helper.c', 'vfp_helper.c', )) @@ -59,6 +58,7 @@ arm_system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('cpu-v7m.c')) arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files('cpu-v7m.c')) arm_common_ss.add(files( + 'arith_helper.c', 'crypto_helper.c', ))