summaryrefslogtreecommitdiffstats
path: root/include/tcg
diff options
context:
space:
mode:
authorLiren Wei2021-07-04 16:31:27 +0200
committerRichard Henderson2021-07-09 18:38:33 +0200
commit834361efd9d52947663aa5b297693f8e352bef2a (patch)
treeb2de0f16a0705c1dfc4b1bcc153594198d418e86 /include/tcg
parentaccel/tcg: Hoist tcg_tb_insert() up above tb_link_page() (diff)
downloadqemu-834361efd9d52947663aa5b297693f8e352bef2a.tar.gz
qemu-834361efd9d52947663aa5b297693f8e352bef2a.tar.xz
qemu-834361efd9d52947663aa5b297693f8e352bef2a.zip
tcg: Bake tb_destroy() into tcg_region_tree
The function is called only at tcg_gen_code() when duplicated TBs are translated by different threads, and when the tcg_region_tree is reset. Bake it into the underlying GTree as its value destroy function to unite these situations. Also remove tcg_region_tree_traverse() which now becomes useless. Signed-off-by: Liren Wei <lrwei@bupt.edu.cn> Message-Id: <8dc352f08d038c4e7a1f5f56962398cdc700c3aa.1625404483.git.lrwei@bupt.edu.cn> [rth: Name the new tb_tc_cmp parameter correctly.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg')
-rw-r--r--include/tcg/tcg.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index 899493701c..dedb86939a 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -808,7 +808,6 @@ void *tcg_malloc_internal(TCGContext *s, int size);
void tcg_pool_reset(TCGContext *s);
TranslationBlock *tcg_tb_alloc(TCGContext *s);
-void tb_destroy(TranslationBlock *tb);
void tcg_region_reset_all(void);
size_t tcg_code_size(void);