[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 8/8] target/alpha: Log temp leaks
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 8/8] target/alpha: Log temp leaks |
Date: |
Tue, 18 Jul 2017 18:45:22 -1000 |
Tested-by: Emilio G. Cota <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/alpha/translate.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/target/alpha/translate.c b/target/alpha/translate.c
index aaaf28f..90e6d52 100644
--- a/target/alpha/translate.c
+++ b/target/alpha/translate.c
@@ -3013,6 +3013,8 @@ void gen_intermediate_code(CPUAlphaState *env, struct
TranslationBlock *tb)
}
gen_tb_start(tb);
+ tcg_clear_temp_count();
+
do {
tcg_gen_insn_start(ctx.pc);
num_insns++;
@@ -3035,6 +3037,10 @@ void gen_intermediate_code(CPUAlphaState *env, struct
TranslationBlock *tb)
ret = translate_one(ctxp, insn);
free_context_temps(ctxp);
+ if (tcg_check_temp_count()) {
+ qemu_log("TCG temporary leak before "TARGET_FMT_lx"\n", ctx.pc);
+ }
+
/* If we reach a page boundary, are single stepping,
or exhaust instruction count, stop generation. */
if (ret == NO_EXIT
--
2.9.4
- [Qemu-devel] [PULL 0/8] target/alpha cleanups, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 1/8] target/alpha: Remove amask from tb->flags, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 4/8] target/alpha: Fix temp leak in gen_bcond, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 2/8] target/alpha: Copy tb->flags into DisasContext, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 3/8] target/alpha: Merge several flag bytes into ENV->FLAGS, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 6/8] target/alpha: Fix temp leak in gen_call_pal, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 5/8] target/alpha: Fix temp leak in gen_mtpr, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 7/8] target/alpha: Fix temp leak in gen_fbcond, Richard Henderson, 2017/07/19
- [Qemu-devel] [PULL 8/8] target/alpha: Log temp leaks,
Richard Henderson <=
- Re: [Qemu-devel] [PULL 0/8] target/alpha cleanups, Peter Maydell, 2017/07/19
- Re: [Qemu-devel] [PULL 0/8] target/alpha cleanups, Peter Maydell, 2017/07/19