[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 20/34] target/arm/tcg: Reduce 'helper-sve.h.inc' inclusion
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 20/34] target/arm/tcg: Reduce 'helper-sve.h.inc' inclusion |
Date: |
Mon, 19 Jun 2023 17:54:56 +0200 |
Instead of including helper-sve.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é <philmd@linaro.org>
---
target/arm/helper.h | 1 -
target/arm/tcg/sve_helper.c | 4 ++++
target/arm/tcg/translate-sme.c | 4 ++++
target/arm/tcg/translate-sve.c | 6 ++++++
target/arm/tcg/vec_helper.c | 4 ++++
5 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/target/arm/helper.h b/target/arm/helper.h
index f347305c0f..38d3d1a2f3 100644
--- a/target/arm/helper.h
+++ b/target/arm/helper.h
@@ -148,7 +148,6 @@ DEF_HELPER_FLAGS_3(crc32c, TCG_CALL_NO_RWG_SE, i32, i32,
i32, i32)
#ifdef TARGET_AARCH64
#include "tcg/helper-a64.h.inc"
-#include "tcg/helper-sve.h.inc"
#include "tcg/helper-sme.h.inc"
#endif
diff --git a/target/arm/tcg/sve_helper.c b/target/arm/tcg/sve_helper.c
index 8a0d966aae..79a42af591 100644
--- a/target/arm/tcg/sve_helper.c
+++ b/target/arm/tcg/sve_helper.c
@@ -33,6 +33,10 @@
#include "exec/helper-proto.h.inc"
#undef HELPER_H
+#define HELPER_H "tcg/helper-sve.h.inc"
+#include "exec/helper-proto.h.inc"
+#undef HELPER_H
+
/* Return a value for NZCV as per the ARM PredTest pseudofunction.
*
* The return value has bit 31 set if N is set, bit 1 set if Z is clear,
diff --git a/target/arm/tcg/translate-sme.c b/target/arm/tcg/translate-sme.c
index 24796e5d9e..e63b9883a9 100644
--- a/target/arm/tcg/translate-sme.c
+++ b/target/arm/tcg/translate-sme.c
@@ -25,6 +25,10 @@
#include "exec/helper-gen.h.inc"
#undef HELPER_H
+#define HELPER_H "tcg/helper-sve.h.inc"
+#include "exec/helper-gen.h.inc"
+#undef HELPER_H
+
/*
* Include the generated decoder.
*/
diff --git a/target/arm/tcg/translate-sve.c b/target/arm/tcg/translate-sve.c
index 605cce0979..87f92b4d1d 100644
--- a/target/arm/tcg/translate-sve.c
+++ b/target/arm/tcg/translate-sve.c
@@ -26,6 +26,12 @@
#include "exec/helper-gen.h.inc"
#undef HELPER_H
+#define HELPER_H "tcg/helper-sve.h.inc"
+#include "exec/helper-proto.h.inc"
+#include "exec/helper-gen.h.inc"
+#include "exec/helper-info.c.inc"
+#undef HELPER_H
+
typedef void GVecGen2sFn(unsigned, uint32_t, uint32_t,
TCGv_i64, uint32_t, uint32_t);
diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c
index b0aaca38e7..99f81df9e1 100644
--- a/target/arm/tcg/vec_helper.c
+++ b/target/arm/tcg/vec_helper.c
@@ -37,6 +37,10 @@
#include "exec/helper-proto.h.inc"
#undef HELPER_H
+#define HELPER_H "tcg/helper-sve.h.inc"
+#include "exec/helper-proto.h.inc"
+#undef HELPER_H
+
/*
* Data for expanding active predicate bits to bytes, for byte elements.
*
--
2.38.1
- Re: [PATCH v3 14/34] target/arm/tcg: Reduce 'helper-neon.h.inc' inclusion, (continued)
- [PATCH v3 15/34] target/arm/tcg: Export some generic vector helpers, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 16/34] target/arm/tcg: Extract generic vector helpers to translate-gvec.c, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 17/34] target/arm/tcg: Extract gvec definitions to 'helper-gvec.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 19/34] target/arm/tcg: Extract SVE2 definitions to 'helper-sve.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 18/34] target/arm/tcg: Reduce 'helper-gvec.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 20/34] target/arm/tcg: Reduce 'helper-sve.h.inc' inclusion,
Philippe Mathieu-Daudé <=
- [PATCH v3 21/34] target/arm/tcg: Extract crypto definitions to 'helper-crypto.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 22/34] target/arm/tcg: Reduce 'helper-crypto.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 23/34] target/arm/tcg: Reduce 'helper-mve.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 24/34] target/arm/tcg: Reduce 'helper-sme.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19