target/ppc: Fix TCG temporary leaks in gen_bcond()
Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <155327782047.1283071.10234727692461848972.stgit@bahia.lan> Tested-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a04d91c701
commit
9acc95cdd3
@ -3749,6 +3749,8 @@ static void gen_bcond(DisasContext *ctx, int type)
|
||||
TCGv temp = tcg_temp_new();
|
||||
if (unlikely(type == BCOND_CTR)) {
|
||||
gen_inval_exception(ctx, POWERPC_EXCP_INVAL_INVAL);
|
||||
tcg_temp_free(temp);
|
||||
tcg_temp_free(target);
|
||||
return;
|
||||
}
|
||||
tcg_gen_subi_tl(cpu_ctr, cpu_ctr, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user