tcg: Only include 'tcg-has.h' when necessary
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 8 Jan 2025 21:51:55 +0000 (22:51 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 17 Jan 2025 04:57:16 +0000 (20:57 -0800)
TCG_TARGET_HAS_* definitions don't need to be exposed
by "tcg/tcg.h". Only include 'tcg-has.h' when necessary.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250108215156.8731-15-philmd@linaro.org>

include/tcg/tcg.h
tcg/optimize.c
tcg/tcg-common.c
tcg/tcg-op-gvec.c
tcg/tcg-op-ldst.c
tcg/tcg-op-vec.c
tcg/tcg-op.c
tcg/tcg.c
tcg/tci.c

index 4352ec012f8db3f9826128c6a0a7ee37b93c98a3..e5fa69d20bd4bcd47de05700ced19d08bbf9fc56 100644 (file)
@@ -64,8 +64,6 @@ typedef uint64_t TCGRegSet;
 #error unsupported
 #endif
 
-#include "tcg/tcg-has.h"
-
 typedef enum TCGOpcode {
 #define DEF(name, oargs, iargs, cargs, flags) INDEX_op_ ## name,
 #include "tcg/tcg-opc.h"
index 6823569ee2b4cc19b181c610a412db14db8724b8..c363c5c04be71e7c1a81f95639a41eb9aa299fd0 100644 (file)
@@ -28,6 +28,7 @@
 #include "qemu/interval-tree.h"
 #include "tcg/tcg-op-common.h"
 #include "tcg-internal.h"
+#include "tcg-has.h"
 
 #define CASE_OP_32_64(x)                        \
         glue(glue(case INDEX_op_, x), _i32):    \
index 35e7616ae9531fa3adaa1c23025e32eac7a4ca08..fadc33c3d1b0a4382203395fa030d9a67918d03c 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "tcg/tcg.h"
+#include "tcg-has.h"
 
 TCGOpDef tcg_op_defs[] = {
 #define DEF(s, oargs, iargs, cargs, flags) \
index 97e4df221a46aca0e023039f7f0ce0df5b85e269..d32a4f146dc6a0c1fc47d28504e33da922f4f09f 100644 (file)
@@ -23,6 +23,7 @@
 #include "tcg/tcg-op-common.h"
 #include "tcg/tcg-op-gvec-common.h"
 #include "tcg/tcg-gvec-desc.h"
+#include "tcg-has.h"
 
 #define MAX_UNROLL  4
 
index 0d8fe3b4f5d9c20dea8c9a0363e4e1ff21302798..ec3ef4dcb4dc7297321f23210c7b370bdfae0cf8 100644 (file)
@@ -30,7 +30,7 @@
 #include "exec/translation-block.h"
 #include "exec/plugin-gen.h"
 #include "tcg-internal.h"
-
+#include "tcg-has.h"
 
 static void check_max_alignment(unsigned a_bits)
 {
index 364cd089df38bbd22e9d5faadf2c96965a00b826..893d68e7d80503107a4c7e23eefa0ad9a1a0b9eb 100644 (file)
@@ -23,6 +23,7 @@
 #include "tcg/tcg-op-common.h"
 #include "tcg/tcg-mo.h"
 #include "tcg-internal.h"
+#include "tcg-has.h"
 
 /*
  * Vector optional opcode tracking.
index 872fb22ef8d9dc5790859ed3c851410004149517..ab5ccd8dcb697c48c7237a030600d6b66a9e89a5 100644 (file)
@@ -29,7 +29,7 @@
 #include "exec/translation-block.h"
 #include "exec/plugin-gen.h"
 #include "tcg-internal.h"
-
+#include "tcg-has.h"
 
 /*
  * Encourage the compiler to tail-call to a function, rather than inlining.
index 505e43c128933e2f523380863432d7c469d71ddf..3576299a1c7c6834dd684b0bb56b46d21967ab02 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -56,6 +56,7 @@
 #include "tcg/tcg-temp-internal.h"
 #include "tcg-internal.h"
 #include "tcg/perf.h"
+#include "tcg-has.h"
 #ifdef CONFIG_USER_ONLY
 #include "user/guest-base.h"
 #endif
index 3eb95e20b65ba9f94fd9c062bff5a53dfebe4043..39a68db287f7a6ed06ae4931a76015a4d6a5ca9f 100644 (file)
--- a/tcg/tci.c
+++ b/tcg/tci.c
@@ -22,6 +22,7 @@
 #include "tcg/helper-info.h"
 #include "tcg/tcg-ldst.h"
 #include "disas/dis-asm.h"
+#include "tcg-has.h"
 #include <ffi.h>