[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 72/84] accel/tcg: Tidy includes for translator.[ch]
|
From: |
Richard Henderson |
|
Subject: |
[PATCH 72/84] accel/tcg: Tidy includes for translator.[ch] |
|
Date: |
Wed, 3 May 2023 08:23:19 +0100 |
Reduce the header to only bswap.h and cpu_ldst.h.
Move exec/translate-all.h to translator.c.
Reduce tcg.h and tcg-op.h to tcg-op-common.h.
Remove otherwise unused headers.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/exec/translator.h | 6 +-----
accel/tcg/translator.c | 8 +++-----
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/include/exec/translator.h b/include/exec/translator.h
index 228002a623..224ae14aa7 100644
--- a/include/exec/translator.h
+++ b/include/exec/translator.h
@@ -18,12 +18,8 @@
* member in your target-specific DisasContext.
*/
-
#include "qemu/bswap.h"
-#include "exec/exec-all.h"
-#include "exec/cpu_ldst.h"
-#include "exec/translate-all.h"
-#include "tcg/tcg.h"
+#include "exec/cpu_ldst.h" /* for abi_ptr */
/**
* gen_intermediate_code
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c
index 60a613c99d..fda4e7f637 100644
--- a/accel/tcg/translator.c
+++ b/accel/tcg/translator.c
@@ -8,15 +8,13 @@
*/
#include "qemu/osdep.h"
+#include "qemu/log.h"
#include "qemu/error-report.h"
-#include "tcg/tcg.h"
-#include "tcg/tcg-op.h"
#include "exec/exec-all.h"
-#include "exec/log.h"
#include "exec/translator.h"
+#include "exec/translate-all.h"
#include "exec/plugin-gen.h"
-#include "exec/replay-core.h"
-
+#include "tcg/tcg-op-common.h"
static void gen_io_start(void)
{
--
2.34.1
- [PATCH 69/84] target/mips: Tidy helpers for translation, (continued)
- [PATCH 69/84] target/mips: Tidy helpers for translation, Richard Henderson, 2023/05/03
- [PATCH 63/84] tcg: Spit out exec/translation-block.h, Richard Henderson, 2023/05/03
- [PATCH 65/84] accel/tcg: Move most of gen-icount.h into translator.c, Richard Henderson, 2023/05/03
- [PATCH 52/84] tcg: Split helper-gen.h, Richard Henderson, 2023/05/03
- [PATCH 59/84] exec-all: Widen tb_page_addr_t for user-only, Richard Henderson, 2023/05/03
- [PATCH 67/84] accel/tcg: Move translator_fake_ldb out of line, Richard Henderson, 2023/05/03
- [PATCH 49/84] tcg: Pass TCGHelperInfo to tcg_gen_callN, Richard Henderson, 2023/05/03
- [PATCH 56/84] tcg: Move TLB_FLAGS_MASK check out of get_alignment_bits, Richard Henderson, 2023/05/03
- [PATCH 64/84] include/exec: Remove CODE_GEN_AVG_BLOCK_SIZE, Richard Henderson, 2023/05/03
- [PATCH 61/84] tcg: Remove DEBUG_DISAS, Richard Henderson, 2023/05/03
- [PATCH 72/84] accel/tcg: Tidy includes for translator.[ch],
Richard Henderson <=
- [PATCH 73/84] tcg: Define IN_TCG, Richard Henderson, 2023/05/03
- [PATCH 76/84] tcg: Remove target-specific headers from tcg.[ch], Richard Henderson, 2023/05/03
- [PATCH 70/84] *: Add missing includes of exec/translation-block.h, Richard Henderson, 2023/05/03
- [PATCH 66/84] accel/tcg: Introduce translator_io_start, Richard Henderson, 2023/05/03
- [PATCH 58/84] tcg: Remove NO_CPU_IO_DEFS, Richard Henderson, 2023/05/03
- [PATCH 60/84] exec-all: Widen TranslationBlock pc and cs_base to 64-bits, Richard Henderson, 2023/05/03
- [PATCH 71/84] *: Add missing includes of exec/exec-all.h, Richard Henderson, 2023/05/03
- [PATCH 74/84] tcg: Fix PAGE/PROT confusion, Richard Henderson, 2023/05/03
- [PATCH 75/84] tcg: Move env defines out of NEED_CPU_H in helper-head.h, Richard Henderson, 2023/05/03
- [PATCH 77/84] plugins: Move plugin_insn_append to translator.c, Richard Henderson, 2023/05/03