tcg: Only include 'tcg-has.h' when necessary

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>
This commit is contained in:
Richard Henderson 2025-01-08 22:51:55 +01:00
parent f15d00a4c1
commit 93280b6738
9 changed files with 8 additions and 4 deletions

View file

@ -64,8 +64,6 @@ typedef uint64_t TCGRegSet;
#error unsupported #error unsupported
#endif #endif
#include "tcg/tcg-has.h"
typedef enum TCGOpcode { typedef enum TCGOpcode {
#define DEF(name, oargs, iargs, cargs, flags) INDEX_op_ ## name, #define DEF(name, oargs, iargs, cargs, flags) INDEX_op_ ## name,
#include "tcg/tcg-opc.h" #include "tcg/tcg-opc.h"

View file

@ -28,6 +28,7 @@
#include "qemu/interval-tree.h" #include "qemu/interval-tree.h"
#include "tcg/tcg-op-common.h" #include "tcg/tcg-op-common.h"
#include "tcg-internal.h" #include "tcg-internal.h"
#include "tcg-has.h"
#define CASE_OP_32_64(x) \ #define CASE_OP_32_64(x) \
glue(glue(case INDEX_op_, x), _i32): \ glue(glue(case INDEX_op_, x), _i32): \

View file

@ -24,6 +24,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "tcg/tcg.h" #include "tcg/tcg.h"
#include "tcg-has.h"
TCGOpDef tcg_op_defs[] = { TCGOpDef tcg_op_defs[] = {
#define DEF(s, oargs, iargs, cargs, flags) \ #define DEF(s, oargs, iargs, cargs, flags) \

View file

@ -23,6 +23,7 @@
#include "tcg/tcg-op-common.h" #include "tcg/tcg-op-common.h"
#include "tcg/tcg-op-gvec-common.h" #include "tcg/tcg-op-gvec-common.h"
#include "tcg/tcg-gvec-desc.h" #include "tcg/tcg-gvec-desc.h"
#include "tcg-has.h"
#define MAX_UNROLL 4 #define MAX_UNROLL 4

View file

@ -30,7 +30,7 @@
#include "exec/translation-block.h" #include "exec/translation-block.h"
#include "exec/plugin-gen.h" #include "exec/plugin-gen.h"
#include "tcg-internal.h" #include "tcg-internal.h"
#include "tcg-has.h"
static void check_max_alignment(unsigned a_bits) static void check_max_alignment(unsigned a_bits)
{ {

View file

@ -23,6 +23,7 @@
#include "tcg/tcg-op-common.h" #include "tcg/tcg-op-common.h"
#include "tcg/tcg-mo.h" #include "tcg/tcg-mo.h"
#include "tcg-internal.h" #include "tcg-internal.h"
#include "tcg-has.h"
/* /*
* Vector optional opcode tracking. * Vector optional opcode tracking.

View file

@ -29,7 +29,7 @@
#include "exec/translation-block.h" #include "exec/translation-block.h"
#include "exec/plugin-gen.h" #include "exec/plugin-gen.h"
#include "tcg-internal.h" #include "tcg-internal.h"
#include "tcg-has.h"
/* /*
* Encourage the compiler to tail-call to a function, rather than inlining. * Encourage the compiler to tail-call to a function, rather than inlining.

View file

@ -56,6 +56,7 @@
#include "tcg/tcg-temp-internal.h" #include "tcg/tcg-temp-internal.h"
#include "tcg-internal.h" #include "tcg-internal.h"
#include "tcg/perf.h" #include "tcg/perf.h"
#include "tcg-has.h"
#ifdef CONFIG_USER_ONLY #ifdef CONFIG_USER_ONLY
#include "user/guest-base.h" #include "user/guest-base.h"
#endif #endif

View file

@ -22,6 +22,7 @@
#include "tcg/helper-info.h" #include "tcg/helper-info.h"
#include "tcg/tcg-ldst.h" #include "tcg/tcg-ldst.h"
#include "disas/dis-asm.h" #include "disas/dis-asm.h"
#include "tcg-has.h"
#include <ffi.h> #include <ffi.h>