]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/tcg: Keep TranslationBlock headers local to TCG
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 24 May 2021 17:04:53 +0000 (19:04 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 26 May 2021 22:33:59 +0000 (15:33 -0700)
Only the TCG accelerator uses the TranslationBlock API.
Move the tb-context.h / tb-hash.h / tb-lookup.h from the
global namespace to the TCG one (in accel/tcg).

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210524170453.3791436-3-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
MAINTAINERS
accel/tcg/cpu-exec.c
accel/tcg/cputlb.c
accel/tcg/tb-context.h [moved from include/exec/tb-context.h with 100% similarity]
accel/tcg/tb-hash.h [moved from include/exec/tb-hash.h with 100% similarity]
accel/tcg/tb-lookup.h [moved from include/exec/tb-lookup.h with 98% similarity]
accel/tcg/tcg-runtime.c
accel/tcg/translate-all.c

index a77f24656946f860620a815c935ab5d3a2fed89f..5f55404f2fae30c4466a6acef36a12af623d4a2c 100644 (file)
@@ -128,7 +128,6 @@ F: docs/devel/decodetree.rst
 F: include/exec/cpu*.h
 F: include/exec/exec-all.h
 F: include/exec/helper*.h
-F: include/exec/tb-hash.h
 F: include/sysemu/cpus.h
 F: include/sysemu/tcg.h
 F: include/hw/core/tcg-cpu-ops.h
index 10e11f27bbe174b4d287205a24bf8bff9fb38271..ad1279d2ed7743caf852eb03ac38b73a3202d09d 100644 (file)
@@ -29,9 +29,6 @@
 #include "qemu/compiler.h"
 #include "qemu/timer.h"
 #include "qemu/rcu.h"
-#include "exec/tb-hash.h"
-#include "exec/tb-lookup.h"
-#include "exec/tb-context.h"
 #include "exec/log.h"
 #include "qemu/main-loop.h"
 #if defined(TARGET_I386) && !defined(CONFIG_USER_ONLY)
@@ -41,6 +38,9 @@
 #include "exec/cpu-all.h"
 #include "sysemu/cpu-timers.h"
 #include "sysemu/replay.h"
+#include "tb-hash.h"
+#include "tb-lookup.h"
+#include "tb-context.h"
 #include "internal.h"
 
 /* -icount align implementation. */
index 2f7088614a75adc176c20e5befb7972e44c12d17..f24348e9793dd068d22f712e9c3a064203ff1ed8 100644 (file)
@@ -24,7 +24,6 @@
 #include "exec/memory.h"
 #include "exec/cpu_ldst.h"
 #include "exec/cputlb.h"
-#include "exec/tb-hash.h"
 #include "exec/memory-internal.h"
 #include "exec/ram_addr.h"
 #include "tcg/tcg.h"
@@ -36,6 +35,7 @@
 #include "exec/translate-all.h"
 #include "trace/trace-root.h"
 #include "trace/mem.h"
+#include "tb-hash.h"
 #include "internal.h"
 #ifdef CONFIG_PLUGIN
 #include "qemu/plugin-memory.h"
similarity index 100%
rename from include/exec/tb-hash.h
rename to accel/tcg/tb-hash.h
similarity index 98%
rename from include/exec/tb-lookup.h
rename to accel/tcg/tb-lookup.h
index 29d61ceb3407346897541ba69f14d117340ce5e8..9c9e0079dad04f791c3ed85f96a5b6b698cb6d01 100644 (file)
@@ -14,7 +14,7 @@
 #endif
 
 #include "exec/exec-all.h"
-#include "exec/tb-hash.h"
+#include "tb-hash.h"
 
 /* Might cause an exception, so have a longjmp destination ready */
 static inline TranslationBlock *tb_lookup(CPUState *cpu, target_ulong pc,
index 49f5de37e87fb9deeae3e3a7a2038a17d0a8bc03..66ac830e2f2c803bba7fe1ac11437fe6ff257d38 100644 (file)
@@ -30,7 +30,7 @@
 #include "disas/disas.h"
 #include "exec/log.h"
 #include "tcg/tcg.h"
-#include "exec/tb-lookup.h"
+#include "tb-lookup.h"
 
 /* 32-bit helpers */
 
index e9f4de5190d094fd795800fd7211039145ac72ad..1eefe6ea8d477c7a996793789ff0b001f753562a 100644 (file)
@@ -47,8 +47,6 @@
 #endif
 
 #include "exec/cputlb.h"
-#include "exec/tb-hash.h"
-#include "exec/tb-context.h"
 #include "exec/translate-all.h"
 #include "qemu/bitmap.h"
 #include "qemu/error-report.h"
@@ -61,6 +59,8 @@
 #include "sysemu/tcg.h"
 #include "qapi/error.h"
 #include "hw/core/tcg-cpu-ops.h"
+#include "tb-hash.h"
+#include "tb-context.h"
 #include "internal.h"
 
 /* #define DEBUG_TB_INVALIDATE */