]> www.infradead.org Git - qemu-nvme.git/commitdiff
tcg: Move tcg_init_ctx and tcg_ctx from accel/tcg/
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 13 Mar 2021 19:36:51 +0000 (13:36 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 14 Jun 2021 00:42:40 +0000 (17:42 -0700)
These variables belong to the jit side, not the user side.

Since tcg_init_ctx is no longer used outside of tcg/, move
the declaration to tcg-internal.h.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translate-all.c
include/tcg/tcg.h
tcg/tcg-internal.h
tcg/tcg.c

index 59609d62d58292c934bcc274c04d29ec16997071..7929a7e3203c874f62ca0dc133d0129368553ba9 100644 (file)
@@ -218,9 +218,6 @@ static int v_l2_levels;
 
 static void *l1_map[V_L1_MAX_SIZE];
 
-/* code generation context */
-TCGContext tcg_init_ctx;
-__thread TCGContext *tcg_ctx;
 TBContext tb_ctx;
 
 static void page_table_config_init(void)
index f48b5aa1663a41ceb6b41fdbd2a7d01b896e3492..e95abac9f49c3bb5efd92f3dd51fe05674e6f263 100644 (file)
@@ -689,7 +689,6 @@ static inline bool temp_readonly(TCGTemp *ts)
     return ts->kind >= TEMP_FIXED;
 }
 
-extern TCGContext tcg_init_ctx;
 extern __thread TCGContext *tcg_ctx;
 extern const void *tcg_code_gen_epilogue;
 extern uintptr_t tcg_splitwx_diff;
index f9906523dac89fdf04c107ecccbde1019bff0b94..181f86507ab87ef37a4182c1167ee04c6ff50936 100644 (file)
@@ -27,6 +27,7 @@
 
 #define TCG_HIGHWATER 1024
 
+extern TCGContext tcg_init_ctx;
 extern TCGContext **tcg_ctxs;
 extern unsigned int tcg_cur_ctxs;
 extern unsigned int tcg_max_ctxs;
index 4bb35b455b4ed9c31d9d5e4bef701148fa5bcc6f..81da5532445b51bd5a7afe515e4f4facccdd69dc 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -149,6 +149,9 @@ static bool tcg_target_const_match(int64_t val, TCGType type, int ct);
 static int tcg_out_ldst_finalize(TCGContext *s);
 #endif
 
+TCGContext tcg_init_ctx;
+__thread TCGContext *tcg_ctx;
+
 TCGContext **tcg_ctxs;
 unsigned int tcg_cur_ctxs;
 unsigned int tcg_max_ctxs;