aboutsummaryrefslogtreecommitdiff
path: root/accel
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-02-24 16:15:18 -1000
committerRichard Henderson <richard.henderson@linaro.org>2023-03-05 13:44:07 -0800
commit2f2e911d0ca27e071c0d62b2e5f0a2ee6e5967f4 (patch)
tree00e5c04c43b003ddc0abdbcebd3a0fd9295ab61e /accel
parent3470867b3b2774f78ae7ab3a0ca4259694e2ddee (diff)
downloadqemu-2f2e911d0ca27e071c0d62b2e5f0a2ee6e5967f4.zip
qemu-2f2e911d0ca27e071c0d62b2e5f0a2ee6e5967f4.tar.gz
qemu-2f2e911d0ca27e071c0d62b2e5f0a2ee6e5967f4.tar.bz2
tcg: Remove tcg_check_temp_count, tcg_clear_temp_count
Since all temps allocated by guest front-ends are now TEMP_TB, and we don't recycle TEMP_TB, there's no point in requiring that the front-ends free the temps at all. Begin by dropping the inner-most checks that all temps have been freed. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r--accel/tcg/translator.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c
index d0babfe..e00e7fa 100644
--- a/accel/tcg/translator.c
+++ b/accel/tcg/translator.c
@@ -18,17 +18,8 @@
#include "exec/plugin-gen.h"
#include "exec/replay-core.h"
-/* Pairs with tcg_clear_temp_count.
- To be called by #TranslatorOps.{translate_insn,tb_stop} if
- (1) the target is sufficiently clean to support reporting,
- (2) as and when all temporaries are known to be consumed.
- For most targets, (2) is at the end of translate_insn. */
void translator_loop_temp_check(DisasContextBase *db)
{
- if (tcg_check_temp_count()) {
- qemu_log("warning: TCG temporary leaks before "
- TARGET_FMT_lx "\n", db->pc_next);
- }
}
bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest)
@@ -67,9 +58,6 @@ void translator_loop(CPUState *cpu, TranslationBlock *tb, int *max_insns,
ops->init_disas_context(db, cpu);
tcg_debug_assert(db->is_jmp == DISAS_NEXT); /* no early exit */
- /* Reset the temp count so that we can identify leaks */
- tcg_clear_temp_count();
-
/* Start translating. */
gen_tb_start(db->tb);
ops->tb_start(db, cpu);