[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 13/14] tcg: Include 'tcg-target-has.h' once in 'tcg-has.h'
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 13/14] tcg: Include 'tcg-target-has.h' once in 'tcg-has.h' |
Date: |
Wed, 8 Jan 2025 22:51:54 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tcg/aarch64/tcg-target.h | 2 --
tcg/arm/tcg-target.h | 2 --
tcg/i386/tcg-target.h | 2 --
tcg/loongarch64/tcg-target.h | 2 --
tcg/mips/tcg-target.h | 2 --
tcg/ppc/tcg-target.h | 2 --
tcg/riscv/tcg-target.h | 2 --
tcg/s390x/tcg-target.h | 2 --
tcg/sparc64/tcg-target.h | 2 --
tcg/tcg-has.h | 2 ++
tcg/tci/tcg-target.h | 2 --
11 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h
index 9a682e51a47..1ef8b2e300b 100644
--- a/tcg/aarch64/tcg-target.h
+++ b/tcg/aarch64/tcg-target.h
@@ -47,8 +47,6 @@ typedef enum {
#define TCG_TARGET_NB_REGS 64
-#include "tcg-target-has.h"
-
#define TCG_TARGET_DEFAULT_MO (0)
#endif /* AARCH64_TCG_TARGET_H */
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h
index e114f7ddf40..21563e00f99 100644
--- a/tcg/arm/tcg-target.h
+++ b/tcg/arm/tcg-target.h
@@ -70,8 +70,6 @@ typedef enum {
#define TCG_TARGET_NB_REGS 32
-#include "tcg-target-has.h"
-
#define TCG_TARGET_DEFAULT_MO (0)
#endif
diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h
index a1dfdeb28d4..e6d7fd526e2 100644
--- a/tcg/i386/tcg-target.h
+++ b/tcg/i386/tcg-target.h
@@ -88,8 +88,6 @@ typedef enum {
TCG_REG_CALL_STACK = TCG_REG_ESP
} TCGReg;
-#include "tcg-target-has.h"
-
/* This defines the natural memory order supported by this
* architecture before guarantees made by various barrier
* instructions.
diff --git a/tcg/loongarch64/tcg-target.h b/tcg/loongarch64/tcg-target.h
index a3a6130720b..0432a4ebbd8 100644
--- a/tcg/loongarch64/tcg-target.h
+++ b/tcg/loongarch64/tcg-target.h
@@ -85,8 +85,6 @@ typedef enum {
TCG_VEC_TMP0 = TCG_REG_V23,
} TCGReg;
-#include "tcg-target-has.h"
-
#define TCG_TARGET_DEFAULT_MO (0)
#endif /* LOONGARCH_TCG_TARGET_H */
diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h
index a34765b3894..210044ca12d 100644
--- a/tcg/mips/tcg-target.h
+++ b/tcg/mips/tcg-target.h
@@ -70,8 +70,6 @@ typedef enum {
TCG_AREG0 = TCG_REG_S8,
} TCGReg;
-#include "tcg-target-has.h"
-
#define TCG_TARGET_DEFAULT_MO 0
#endif
diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h
index fa2cc281838..0bc13d7363a 100644
--- a/tcg/ppc/tcg-target.h
+++ b/tcg/ppc/tcg-target.h
@@ -53,8 +53,6 @@ typedef enum {
TCG_AREG0 = TCG_REG_R27
} TCGReg;
-#include "tcg-target-has.h"
-
#define TCG_TARGET_DEFAULT_MO (0)
#endif
diff --git a/tcg/riscv/tcg-target.h b/tcg/riscv/tcg-target.h
index c710321bdb9..4c406624029 100644
--- a/tcg/riscv/tcg-target.h
+++ b/tcg/riscv/tcg-target.h
@@ -57,8 +57,6 @@ typedef enum {
TCG_REG_TMP2 = TCG_REG_T4,
} TCGReg;
-#include "tcg-target-has.h"
-
#define TCG_TARGET_DEFAULT_MO (0)
#endif
diff --git a/tcg/s390x/tcg-target.h b/tcg/s390x/tcg-target.h
index 220ed68b1f4..f790b770750 100644
--- a/tcg/s390x/tcg-target.h
+++ b/tcg/s390x/tcg-target.h
@@ -51,8 +51,6 @@ typedef enum TCGReg {
#define TCG_TARGET_NB_REGS 64
-#include "tcg-target-has.h"
-
#define TCG_TARGET_DEFAULT_MO (TCG_MO_ALL & ~TCG_MO_ST_LD)
#endif
diff --git a/tcg/sparc64/tcg-target.h b/tcg/sparc64/tcg-target.h
index 14621446312..5ecca5586b6 100644
--- a/tcg/sparc64/tcg-target.h
+++ b/tcg/sparc64/tcg-target.h
@@ -66,8 +66,6 @@ typedef enum {
#define TCG_AREG0 TCG_REG_I0
-#include "tcg-target-has.h"
-
#define TCG_TARGET_DEFAULT_MO (0)
#endif
diff --git a/tcg/tcg-has.h b/tcg/tcg-has.h
index c09ce13389e..65b6a0b0cf4 100644
--- a/tcg/tcg-has.h
+++ b/tcg/tcg-has.h
@@ -7,6 +7,8 @@
#ifndef TCG_HAS_H
#define TCG_HAS_H
+#include "tcg-target-has.h"
+
#if TCG_TARGET_REG_BITS == 32
/* Turn some undef macros into false macros. */
#define TCG_TARGET_HAS_extr_i64_i32 0
diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h
index 899d9861a64..fea92f7848a 100644
--- a/tcg/tci/tcg-target.h
+++ b/tcg/tci/tcg-target.h
@@ -44,8 +44,6 @@
#define TCG_TARGET_INSN_UNIT_SIZE 4
#define MAX_CODE_GEN_BUFFER_SIZE ((size_t)-1)
-#include "tcg-target-has.h"
-
/* Number of registers available. */
#define TCG_TARGET_NB_REGS 16
--
2.47.1
- [PATCH v3 03/14] tcg/aarch64: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', (continued)
- [PATCH v3 03/14] tcg/aarch64: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 04/14] tcg/arm: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 05/14] tcg/i386: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 06/14] tcg/loongarch64: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 07/14] tcg/mips: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 08/14] tcg/ppc: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 09/14] tcg/riscv: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 10/14] tcg/s390x: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 11/14] tcg/sparc64: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 12/14] tcg/tci: Extract TCG_TARGET_HAS_foo defs to 'tcg-target-has.h', Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v3 13/14] tcg: Include 'tcg-target-has.h' once in 'tcg-has.h',
Philippe Mathieu-Daudé <=
- [PATCH v3 14/14] tcg: Only include 'tcg-has.h' when necessary, Philippe Mathieu-Daudé, 2025/01/08
- [PATCH v2 23/81] tcg: Remove args_ct from TCGOpDef, Richard Henderson, 2025/01/07
- [PATCH v2 28/81] tcg: Add TCGType argument to tcg_out_op, Richard Henderson, 2025/01/07
- [PATCH v2 29/81] tcg: Remove TCG_OPF_64BIT, Richard Henderson, 2025/01/07
- [PATCH v2 32/81] tcg/mips: Expand bswap unconditionally, Richard Henderson, 2025/01/07
- [PATCH v2 31/81] tcg: Replace IMPLVEC with TCG_OPF_VECTOR, Richard Henderson, 2025/01/07
- [PATCH v2 34/81] tcg/i386: Fold the ext{8, 16, 32}[us] cases into {s}extract, Richard Henderson, 2025/01/07
- [PATCH v2 35/81] tcg/aarch64: Provide TCG_TARGET_{s}extract_valid, Richard Henderson, 2025/01/07