diff options
author | Tom Musta <tommusta@gmail.com> | 2014-06-04 12:26:02 -0500 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-06-16 13:24:42 +0200 |
commit | a9e8f4e7df385a6c704527d9c5b562f42566d491 (patch) | |
tree | a7327796c563dc0aa3026bec85422531275b252d | |
parent | 13b6a455655068e6f86576c43ef070995dccaa40 (diff) |
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>
-rw-r--r-- | target-ppc/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 71e38a52e6..6affe7e617 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); } } |