target-ppc: Fix Temporary Variable Leak in bctar
Fix a temporary variable leak detected in the bctar instruction: Opcode 13 10 11 (4d910460) leaked temporaries Signed-off-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
13b6a45565
commit
a9e8f4e7df
@ -3879,7 +3879,7 @@ static inline void gen_bcond(DisasContext *ctx, int type)
|
|||||||
gen_update_nip(ctx, ctx->nip);
|
gen_update_nip(ctx, ctx->nip);
|
||||||
tcg_gen_exit_tb(0);
|
tcg_gen_exit_tb(0);
|
||||||
}
|
}
|
||||||
if (type == BCOND_LR || type == BCOND_CTR) {
|
if (type == BCOND_LR || type == BCOND_CTR || type == BCOND_TAR) {
|
||||||
tcg_temp_free(target);
|
tcg_temp_free(target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user