mirror of https://gitlab.com/qemu-project/qemu
target/alpha: Log temp leaks
Tested-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
6a9b110d54
commit
8aa5c65fd3
|
@ -3013,6 +3013,8 @@ void gen_intermediate_code(CPUAlphaState *env, struct TranslationBlock *tb)
|
||||||
}
|
}
|
||||||
|
|
||||||
gen_tb_start(tb);
|
gen_tb_start(tb);
|
||||||
|
tcg_clear_temp_count();
|
||||||
|
|
||||||
do {
|
do {
|
||||||
tcg_gen_insn_start(ctx.pc);
|
tcg_gen_insn_start(ctx.pc);
|
||||||
num_insns++;
|
num_insns++;
|
||||||
|
@ -3035,6 +3037,10 @@ void gen_intermediate_code(CPUAlphaState *env, struct TranslationBlock *tb)
|
||||||
ret = translate_one(ctxp, insn);
|
ret = translate_one(ctxp, insn);
|
||||||
free_context_temps(ctxp);
|
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,
|
/* If we reach a page boundary, are single stepping,
|
||||||
or exhaust instruction count, stop generation. */
|
or exhaust instruction count, stop generation. */
|
||||||
if (ret == NO_EXIT
|
if (ret == NO_EXIT
|
||||||
|
|
Loading…
Reference in New Issue