From patchwork Mon Jun 19 15:42:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 694065 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp2436834wru; Mon, 19 Jun 2023 08:46:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6k178VUkh31Ew5NxdWO/Baz60NAwpSkIBlqw3XZRdrXYOiP3S7cJikaI4xqVAOup/yq0VW X-Received: by 2002:a05:600c:25a:b0:3f7:b1de:f95e with SMTP id 26-20020a05600c025a00b003f7b1def95emr9432668wmj.0.1687189567831; Mon, 19 Jun 2023 08:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687189567; cv=none; d=google.com; s=arc-20160816; b=ip4OlOEgJJY1y4f2aSE9tI41+vad9itAti2PDQEf0X4OyLFdzy5TBZolfWaMZzMj3Z a9wOM+qARVdsZlmR2W+D98gtVHYE6aWITZ1kGvc5a6de/uHRvW9L2vOgRiTcBS1+6Q9U Q1LKd3GztmCs4EQqdFA+LjlC4H639SqWMQoToEZzu51X7zgHqP+2BRAOY/QX48bPPDzL BrJI5UZWpg8wwAD/2kVhGyWUT66A0LXcQqNNdFjBZHf60IvdLbLqnTpr3/8jv6UHBJsW oHOfSLw145Pl0JYD8n3c5T1Nv2ESlSW8dlvNCFuYVWVMbPeAszKTs4iCOWR1Vup8WX+P ddww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=wpue+WDZGd1dlFRLGhJawKQFAfXWkoeKMacg8Szd6mo=; b=UAhchkpouGG4yl65nevDJXpbrNiG93G/1LnvqsPLYQGDaHEiNutQcDWwkJwLcnTWxT CPSK1z7jVqj09XmJeT2OFVJ7VXA+p/D6M4ch+KhOiDuKK4hmUAM6dNmg3MJRvvzYOXs3 m6h7dQ5hAho9AgAtduupoJr100ufyAE+ow0ofVvvJLXbmdHrYFB7GqWJoHsg4GHTqVAg +0RTrT6YmrKX3iJEhljm66kJ0ENtjLmwond81T9v/HBoDqPbljDBPT2pscYv6/99l32Q hO2NWMykt21TemsrXypQmpK76W0auWXuYEmL1Y/MbvxPfQzKCTen11zWRA2grBhdRMho Z6RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ebsuvq42; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f11-20020a05600c4e8b00b003f738f57979si4849664wmq.53.2023.06.19.08.46.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jun 2023 08:46:07 -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=Ebsuvq42; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBH4h-0000j9-0K; Mon, 19 Jun 2023 11:45:51 -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 1qBH4O-0000Qj-Sw for qemu-devel@nongnu.org; Mon, 19 Jun 2023 11:45:33 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBH4M-0001qq-U7 for qemu-devel@nongnu.org; Mon, 19 Jun 2023 11:45:32 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-311099fac92so4248272f8f.0 for ; Mon, 19 Jun 2023 08:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687189529; x=1689781529; 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=wpue+WDZGd1dlFRLGhJawKQFAfXWkoeKMacg8Szd6mo=; b=Ebsuvq42DHbO4ajykW3BqJIO7eL2ySFKieTLd6vJoZBiF+ev3x3OgG3LfAJukSaejL bLl2ntKyaQvGv7AF4/ufC2e+1BpD9v+KiUvziXH81r8JobSHyJIDHLs6AqIWuNELJY6Y cRbJ126sYBvEolcqjp19tfPWoV0UzebhAYE1xZALf80CppVRIq4iHPadnG4++22kdrEt seyq66RvvtNr7kHw82ngKMMr5uwdMzRdGpcMNIrnRYGuK9SL8/1LI4tqNwwv/OFoFz9N RPrTh7BP7u5TXlBqVkUdoQiStp/RJMLlqg8BiV2rpUGR91asvDqMb4uNeTnGsFDv7hlf 7Svw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687189529; x=1689781529; 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=wpue+WDZGd1dlFRLGhJawKQFAfXWkoeKMacg8Szd6mo=; b=LbRICKTkJ4LqlzeXcaNAq+hKfrM4TW1fiRz2N/TmvrAJHbL9yAMU8WpsdFw25vFSBk Y1MWSoTCOqE2R2FDBF8phg3GImPAGgS95XVE4z4GiVRVrZ/AElx4sSh90JsNpy0muowN 4mDzK95uHc5kmBqfuwqm1BIvyXMHsUoWsMMY+5KEyGwdzczXm1WL+SJaabH5g7yaGcng e6y3MDnjdawwowXGGmHwxch4+lMtlTwQg1It+MftmB+34NhpWs8Jzw4lK9fEDAS83L6B bTDQYq0ZFH27JN29alL6d5SgydPrfnx1twYfg7zM7O1a0nMwO4oeh8R4dDCQD0qHibB6 ClKQ== X-Gm-Message-State: AC+VfDzvUx4EjvbmHNDwdEildiqFAUxFrmLDizrF/B28HUaUtAYRbBfa u27vt+hy0t30TqydnLUvdsYIpncjg9SS1gjrrt393w== X-Received: by 2002:adf:eac3:0:b0:311:17c5:3a9a with SMTP id o3-20020adfeac3000000b0031117c53a9amr8691379wrn.38.1687189529004; Mon, 19 Jun 2023 08:45:29 -0700 (PDT) Received: from m1x-phil.lan (sar95-h02-176-184-10-225.dsl.sta.abo.bbox.fr. [176.184.10.225]) by smtp.gmail.com with ESMTPSA id d6-20020adffd86000000b0030ae87bd3e3sm31863953wrr.18.2023.06.19.08.45.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Jun 2023 08:45:28 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH v3 11/34] target/arm/tcg: Reduce 'helper-vfp.h.inc' inclusion Date: Mon, 19 Jun 2023 17:42:39 +0200 Message-Id: <20230619154302.80350-12-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230619154302.80350-1-philmd@linaro.org> References: <20230619154302.80350-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Instead of including helper-vfp.h.inc via helper.h which is included by all TCG files, restrict it to the few files that require it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/arm/helper.h | 1 - target/arm/tcg/mve_helper.c | 4 ++++ target/arm/tcg/sve_helper.c | 3 +++ target/arm/tcg/translate-a64.c | 4 ++++ target/arm/tcg/translate-m-nocp.c | 5 +++++ target/arm/tcg/translate-neon.c | 4 ++++ target/arm/tcg/translate-vfp.c | 6 ++++++ target/arm/tcg/vec_helper.c | 4 ++++ target/arm/vfp_helper.c | 5 ++++- 9 files changed, 34 insertions(+), 2 deletions(-) diff --git a/target/arm/helper.h b/target/arm/helper.h index e81ea87d37..2419650ec6 100644 --- a/target/arm/helper.h +++ b/target/arm/helper.h @@ -783,5 +783,4 @@ DEF_HELPER_FLAGS_5(gvec_uclamp_d, TCG_CALL_NO_RWG, #include "tcg/helper-sme.h.inc" #endif -#include "tcg/helper-vfp.h.inc" #include "tcg/helper-mve.h.inc" diff --git a/target/arm/tcg/mve_helper.c b/target/arm/tcg/mve_helper.c index 403b345ea3..d8ba5a9e60 100644 --- a/target/arm/tcg/mve_helper.c +++ b/target/arm/tcg/mve_helper.c @@ -27,6 +27,10 @@ #include "tcg/tcg.h" #include "fpu/softfloat.h" +#define HELPER_H "tcg/helper-vfp.h.inc" +#include "exec/helper-proto.h.inc" +#undef HELPER_H + static uint16_t mve_eci_mask(CPUARMState *env) { /* diff --git a/target/arm/tcg/sve_helper.c b/target/arm/tcg/sve_helper.c index 0097522470..8a0d966aae 100644 --- a/target/arm/tcg/sve_helper.c +++ b/target/arm/tcg/sve_helper.c @@ -29,6 +29,9 @@ #include "sve_ldst_internal.h" #include "hw/core/tcg-cpu-ops.h" +#define HELPER_H "tcg/helper-vfp.h.inc" +#include "exec/helper-proto.h.inc" +#undef HELPER_H /* Return a value for NZCV as per the ARM PredTest pseudofunction. * diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c index aa93f37e21..c0727c900f 100644 --- a/target/arm/tcg/translate-a64.c +++ b/target/arm/tcg/translate-a64.c @@ -26,6 +26,10 @@ #include "semihosting/semihost.h" #include "cpregs.h" +#define HELPER_H "tcg/helper-vfp.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + static TCGv_i64 cpu_X[32]; static TCGv_i64 cpu_pc; diff --git a/target/arm/tcg/translate-m-nocp.c b/target/arm/tcg/translate-m-nocp.c index 33f6478bb9..7343945b41 100644 --- a/target/arm/tcg/translate-m-nocp.c +++ b/target/arm/tcg/translate-m-nocp.c @@ -21,6 +21,11 @@ #include "translate.h" #include "translate-a32.h" +#define HELPER_H "tcg/helper-vfp.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + +/* Include the generated decoder */ #include "decode-m-nocp.c.inc" /* diff --git a/target/arm/tcg/translate-neon.c b/target/arm/tcg/translate-neon.c index 03913de047..497aba2e39 100644 --- a/target/arm/tcg/translate-neon.c +++ b/target/arm/tcg/translate-neon.c @@ -24,6 +24,10 @@ #include "translate.h" #include "translate-a32.h" +#define HELPER_H "tcg/helper-vfp.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + /* Include the generated Neon decoder */ #include "decode-neon-dp.c.inc" #include "decode-neon-ls.c.inc" diff --git a/target/arm/tcg/translate-vfp.c b/target/arm/tcg/translate-vfp.c index 4bfd857141..b890c7ed01 100644 --- a/target/arm/tcg/translate-vfp.c +++ b/target/arm/tcg/translate-vfp.c @@ -24,6 +24,12 @@ #include "translate.h" #include "translate-a32.h" +#define HELPER_H "tcg/helper-vfp.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#include "exec/helper-info.c.inc" +#undef HELPER_H + /* Include the generated VFP decoder */ #include "decode-vfp.c.inc" #include "decode-vfp-uncond.c.inc" diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c index f59d3b26ea..013ca1b05f 100644 --- a/target/arm/tcg/vec_helper.c +++ b/target/arm/tcg/vec_helper.c @@ -25,6 +25,10 @@ #include "qemu/int128.h" #include "vec_internal.h" +#define HELPER_H "tcg/helper-vfp.h.inc" +#include "exec/helper-proto.h.inc" +#undef HELPER_H + /* * Data for expanding active predicate bits to bytes, for byte elements. * diff --git a/target/arm/vfp_helper.c b/target/arm/vfp_helper.c index 0a5b2993a4..7046a2a554 100644 --- a/target/arm/vfp_helper.c +++ b/target/arm/vfp_helper.c @@ -19,7 +19,6 @@ #include "qemu/osdep.h" #include "cpu.h" -#include "exec/helper-proto.h" #include "internals.h" #ifdef CONFIG_TCG #include "qemu/log.h" @@ -32,6 +31,10 @@ #ifdef CONFIG_TCG +#define HELPER_H "tcg/helper-vfp.h.inc" +#include "exec/helper-proto.h.inc" +#undef HELPER_H + /* Convert host exception flags to vfp form. */ static inline int vfp_exceptbits_from_host(int host_bits) {