mirror of
https://github.com/qemu/qemu.git
synced 2024-12-04 01:03:38 +08:00
target/microblaze: Plug temp leak around eval_cond_jmp()
Plug temp leak around eval_cond_jmp(). Reviewed-by: Luc Michel <luc.michel@greensocs.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
f91c60f0ca
commit
c49a41b0b9
@ -1681,7 +1681,10 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns)
|
||||
dc->tb_flags &= ~D_FLAG;
|
||||
/* If it is a direct jump, try direct chaining. */
|
||||
if (dc->jmp == JMP_INDIRECT) {
|
||||
eval_cond_jmp(dc, env_btarget, tcg_const_i64(dc->pc));
|
||||
TCGv_i64 tmp_pc = tcg_const_i64(dc->pc);
|
||||
eval_cond_jmp(dc, env_btarget, tmp_pc);
|
||||
tcg_temp_free_i64(tmp_pc);
|
||||
|
||||
dc->is_jmp = DISAS_JUMP;
|
||||
} else if (dc->jmp == JMP_DIRECT) {
|
||||
t_sync_flags(dc);
|
||||
|
Loading…
Reference in New Issue
Block a user