From a9e8f4e7df385a6c704527d9c5b562f42566d491 Mon Sep 17 00:00:00 2001 From: Tom Musta Date: Wed, 4 Jun 2014 12:26:02 -0500 Subject: 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 Signed-off-by: Alexander Graf --- target-ppc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 71e38a5..6affe7e 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -3879,7 +3879,7 @@ static inline void gen_bcond(DisasContext *ctx, int type) gen_update_nip(ctx, ctx->nip); 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); } } -- cgit v1.1