From nobody Sun May 11 12:17:16 2025 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1686307837; cv=none; d=zohomail.com; s=zohoarc; b=N9py/heRi8tJwsBe8sSu4+w1YS+Yray7ZMdGlBEGjD8utqCpS7dz4gTP10+pwzB1Rf+68qEnqIbKh4a6ikWpgoPly/c38r3W47FkcvnMp+wc5nmg7A430ijgNgVyS/vVYB9ZoJK/YnRyhXGfIyCPHSiG3Ri4yhcW5WCWadyyVes= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686307837; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cZtN3aInDSVaLd3+4eaeBHGfQDr+jXLji29WVAcNhFg=; b=BrSEIO5uZUVOcegWQXrkQqJcWfc8B9ZFIOU6BSafFj55K+KFG1fnOI6/P4ilReR8nHLT8gpIj2soDtxgPKTBzoVyfEUuXbfLdw5rWbTGjy65q2vM6MALky9bsa1qcq1tZj3n3IYWWphbLEY5M1ytkHveStglI7lbg76wOi7Eepg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1686307837147393.7057842840899; Fri, 9 Jun 2023 03:50:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7Zfs-0004tr-8N; Fri, 09 Jun 2023 06:48:56 -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 1q7Zfq-0004kX-Rm for qemu-devel@nongnu.org; Fri, 09 Jun 2023 06:48:54 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7Zfp-0001ZO-1q for qemu-devel@nongnu.org; Fri, 09 Jun 2023 06:48:54 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-307d20548adso1135057f8f.0 for ; Fri, 09 Jun 2023 03:48:52 -0700 (PDT) Received: from localhost.localdomain (23.171.88.92.rev.sfr.net. [92.88.171.23]) by smtp.gmail.com with ESMTPSA id k1-20020a5d6e81000000b0030e5ccaec84sm4162044wrz.32.2023.06.09.03.48.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Jun 2023 03:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686307731; x=1688899731; 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=cZtN3aInDSVaLd3+4eaeBHGfQDr+jXLji29WVAcNhFg=; b=UtpnVc0CahFgA9XXKgaPfiHatZOmVtVo1dizriXXP7nNQ237K8HxuwjSjECVgY6y/R 7gAdOE2eE1Kjo7FSiZTJQVM0cj+cgV+9mwn0Uerjcb37kgy3Fw7oQBuJFh+FAhEpc/Vm uTZdBfrHlxldU22BymtQRVD4iQeqDso54TG/8pNiVMHlOq677/UIIuHCCeWzo2L9UVZl hF1e7wU0gTUKfBGKkBomvFsE6RN7q4OETx5mdSiSGF2230GMZIgM1hADWWUW6aS8ntxc 4CjB5TS8udC+T8ZHWcc1rq4bYjMFzXm6nBZVl6+zih+x6VWT9IlbuGFvjCUVI8D7FRLr pP+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686307731; x=1688899731; 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=cZtN3aInDSVaLd3+4eaeBHGfQDr+jXLji29WVAcNhFg=; b=HNScW4MKbrxs3a7ba4E0Enh0xhOvE2wfnarnyQfDH9VWOzMpafTf6QbzTrm8bm0NIC 20tSqgfU1Z/XOGp5tCDsR5812qx9EOP53fcq14vr5OXLxu/huEmWJFiRLqsAl43JZXTt 6dT0YlHPtQsvwHeb3qBNziqA9oyD2eDp/wQ75YIhN2EsUyN76xVM1bQD5MG5YLV20eSt G5HXs3cibDtjl213w8gta77CwkXiEt4EboQK5Qf1d8ZkCEDEz3MSn4Z8o4gtpLvn0bkI tzSyPAAehOxpxUpzSBe0TNPDbSXb0kMDkJWS5+MtdU+N4WUbZ7aWeq1QETJKNkg5xdhd VtRg== X-Gm-Message-State: AC+VfDx53TaDNELg0W0LlHtZxAYZdj86gR+f7Z1GeP20lmq/FbSbVelo nCakit2TRzdcOKAclAVLriWpfj8VrzP56IcvEH2gOA== X-Google-Smtp-Source: ACHHUZ5+svKDFaO81wzvydmmBDtSJVIIFytQ8N0DvXE8ioHMXrBqG/gYr5RIqptu6+2yGfcPs0z0kw== X-Received: by 2002:a5d:52d1:0:b0:309:50e7:7d0 with SMTP id r17-20020a5d52d1000000b0030950e707d0mr618418wrv.31.1686307731428; Fri, 09 Jun 2023 03:48:51 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 14/22] target/arm/tcg: Reduce 'helper-neon.h.inc' inclusion Date: Fri, 9 Jun 2023 12:47:09 +0200 Message-Id: <20230609104717.95555-15-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230609104717.95555-1-philmd@linaro.org> References: <20230609104717.95555-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=philmd@linaro.org; helo=mail-wr1-x434.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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1686307839583100008 Instead of including helper-neon.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=C3=A9 --- target/arm/helper.h | 1 - target/arm/tcg/neon_helper.c | 6 +++++- target/arm/tcg/translate-a64.c | 5 +++++ target/arm/tcg/translate-neon.c | 6 ++++++ target/arm/tcg/translate-sme.c | 5 +++++ target/arm/tcg/translate.c | 5 +++++ target/arm/tcg/vec_helper.c | 5 +++++ 7 files changed, 31 insertions(+), 2 deletions(-) diff --git a/target/arm/helper.h b/target/arm/helper.h index 2cf25f0605..82c34df538 100644 --- a/target/arm/helper.h +++ b/target/arm/helper.h @@ -608,5 +608,4 @@ DEF_HELPER_FLAGS_5(gvec_uclamp_d, TCG_CALL_NO_RWG, #include "tcg/helper-sme.h.inc" #endif =20 -#include "tcg/helper-neon.h.inc" #include "tcg/helper-mve.h.inc" diff --git a/target/arm/tcg/neon_helper.c b/target/arm/tcg/neon_helper.c index 0a4ab3e42c..3346a897ad 100644 --- a/target/arm/tcg/neon_helper.c +++ b/target/arm/tcg/neon_helper.c @@ -9,10 +9,14 @@ #include "qemu/osdep.h" =20 #include "cpu.h" -#include "exec/helper-proto.h" #include "fpu/softfloat.h" #include "vec_internal.h" =20 +#define HELPER_H "tcg/helper-neon.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + #define SIGNBIT (uint32_t)0x80000000 #define SIGNBIT64 ((uint64_t)1 << 63) =20 diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c index 98bcd15188..06ad40a568 100644 --- a/target/arm/tcg/translate-a64.c +++ b/target/arm/tcg/translate-a64.c @@ -31,6 +31,11 @@ #include "exec/helper-gen.h.inc" #undef HELPER_H =20 +#define HELPER_H "tcg/helper-neon.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + static TCGv_i64 cpu_X[32]; static TCGv_i64 cpu_pc; =20 diff --git a/target/arm/tcg/translate-neon.c b/target/arm/tcg/translate-neo= n.c index 6823e4c744..a820afb90d 100644 --- a/target/arm/tcg/translate-neon.c +++ b/target/arm/tcg/translate-neon.c @@ -29,6 +29,12 @@ #include "exec/helper-gen.h.inc" #undef HELPER_H =20 +#define HELPER_H "tcg/helper-neon.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 Neon decoder */ #include "decode-neon-dp.c.inc" #include "decode-neon-ls.c.inc" diff --git a/target/arm/tcg/translate-sme.c b/target/arm/tcg/translate-sme.c index d0054e3f77..9419aaca4a 100644 --- a/target/arm/tcg/translate-sme.c +++ b/target/arm/tcg/translate-sme.c @@ -21,6 +21,11 @@ #include "translate.h" #include "translate-a64.h" =20 +#define HELPER_H "tcg/helper-neon.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + /* * Include the generated decoder. */ diff --git a/target/arm/tcg/translate.c b/target/arm/tcg/translate.c index a352fced6e..7bfced1bc6 100644 --- a/target/arm/tcg/translate.c +++ b/target/arm/tcg/translate.c @@ -29,6 +29,11 @@ #include "cpregs.h" #include "exec/helper-proto.h" =20 +#define HELPER_H "tcg/helper-neon.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + #define HELPER_H "helper.h" #include "exec/helper-info.c.inc" #undef HELPER_H diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c index d7d6643846..9b00085095 100644 --- a/target/arm/tcg/vec_helper.c +++ b/target/arm/tcg/vec_helper.c @@ -30,6 +30,11 @@ #include "exec/helper-gen.h.inc" #undef HELPER_H =20 +#define HELPER_H "tcg/helper-neon.h.inc" +#include "exec/helper-proto.h.inc" +#include "exec/helper-gen.h.inc" +#undef HELPER_H + /* * Data for expanding active predicate bits to bytes, for byte elements. * --=20 2.38.1