[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 07/34] target/arm/tcg: Reduce 'helper-iwmmxt.h.inc' inclusion
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 07/34] target/arm/tcg: Reduce 'helper-iwmmxt.h.inc' inclusion |
Date: |
Mon, 19 Jun 2023 17:42:35 +0200 |
Instead of including helper-iwmmxt.h.inc via helper.h which
is included by all TCG files, restrict it to the few files
that require it.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/arm/helper.h | 1 -
target/arm/tcg/iwmmxt_helper.c | 5 ++++-
target/arm/tcg/translate-iwmmxt.c | 6 ++++++
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/target/arm/helper.h b/target/arm/helper.h
index c4a321c0ea..dd12fee107 100644
--- a/target/arm/helper.h
+++ b/target/arm/helper.h
@@ -949,5 +949,4 @@ DEF_HELPER_FLAGS_5(gvec_uclamp_d, TCG_CALL_NO_RWG,
#include "tcg/helper-sme.h.inc"
#endif
-#include "tcg/helper-iwmmxt.h.inc"
#include "tcg/helper-mve.h.inc"
diff --git a/target/arm/tcg/iwmmxt_helper.c b/target/arm/tcg/iwmmxt_helper.c
index 610b1b2103..ee607a3d3d 100644
--- a/target/arm/tcg/iwmmxt_helper.c
+++ b/target/arm/tcg/iwmmxt_helper.c
@@ -22,7 +22,10 @@
#include "qemu/osdep.h"
#include "cpu.h"
-#include "exec/helper-proto.h"
+
+#define HELPER_H "tcg/helper-iwmmxt.h.inc"
+#include "exec/helper-proto.h.inc"
+#undef HELPER_H
/* iwMMXt macros extracted from GNU gdb. */
diff --git a/target/arm/tcg/translate-iwmmxt.c
b/target/arm/tcg/translate-iwmmxt.c
index 57a924c578..9f6d717ee0 100644
--- a/target/arm/tcg/translate-iwmmxt.c
+++ b/target/arm/tcg/translate-iwmmxt.c
@@ -12,6 +12,12 @@
#include "translate.h"
#include "translate-a32.h"
+#define HELPER_H "tcg/helper-iwmmxt.h.inc"
+#include "exec/helper-proto.h.inc"
+#include "exec/helper-gen.h.inc"
+#include "exec/helper-info.c.inc"
+#undef HELPER_H
+
#define ARM_CP_RW_BIT (1 << 20)
static inline void iwmmxt_load_reg(TCGv_i64 var, int reg)
--
2.38.1
- [PATCH v3 00/34] target/arm/tcg: Remove inclusions of 'exec/helper-[proto/gen].h', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 01/34] target/arm/tcg: Remove CONFIG_TCG #ifdef'ry check, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 02/34] target/arm/tcg: Rename helper template headers as '.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 03/34] target/arm/tcg: Extract iwMMXt helpers from the generic 'helper.h', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 04/34] target/arm/tcg: Fix iwmmxt-related code style, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 05/34] target/arm/tcg: Expose some iwmmxt methods in 'translate.h', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 06/34] target/arm/tcg: Extract iwmmxt code to translate-iwmmxt.c, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 08/34] target/arm/tcg: Un-inline VFP translation helpers, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 07/34] target/arm/tcg: Reduce 'helper-iwmmxt.h.inc' inclusion,
Philippe Mathieu-Daudé <=
- [PATCH v3 09/34] target/arm/tcg: Move VFP helpers from helper-a64.c to vfp_helper.c, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 10/34] target/arm/tcg: Extract VFP definitions to 'helper-vfp.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 11/34] target/arm/tcg: Reduce 'helper-vfp.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 12/34] target/arm/tcg: Move NEON helpers to neon_helper.c, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 13/34] target/arm/tcg: Extract NEON definitions to 'helper-neon.h.inc', Philippe Mathieu-Daudé, 2023/06/19