Browse Source

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>
pull/281/head
Richard Henderson 2 years ago
parent
commit
93280b6738
  1. 2
      include/tcg/tcg.h
  2. 1
      tcg/optimize.c
  3. 1
      tcg/tcg-common.c
  4. 1
      tcg/tcg-op-gvec.c
  5. 2
      tcg/tcg-op-ldst.c
  6. 1
      tcg/tcg-op-vec.c
  7. 2
      tcg/tcg-op.c
  8. 1
      tcg/tcg.c
  9. 1
      tcg/tci.c

2
include/tcg/tcg.h

@ -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"

1
tcg/optimize.c

@ -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): \

1
tcg/tcg-common.c

@ -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) \

1
tcg/tcg-op-gvec.c

@ -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

2
tcg/tcg-op-ldst.c

@ -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)
{

1
tcg/tcg-op-vec.c

@ -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.

2
tcg/tcg-op.c

@ -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.

1
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

1
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>

Loading…
Cancel
Save