aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Musta <tommusta@gmail.com>2014-06-04 12:26:02 -0500
committerAlexander Graf <agraf@suse.de>2014-06-16 13:24:42 +0200
commita9e8f4e7df385a6c704527d9c5b562f42566d491 (patch)
treea7327796c563dc0aa3026bec85422531275b252d
parent13b6a455655068e6f86576c43ef070995dccaa40 (diff)
downloadqemu-a9e8f4e7df385a6c704527d9c5b562f42566d491.zip
qemu-a9e8f4e7df385a6c704527d9c5b562f42566d491.tar.gz
qemu-a9e8f4e7df385a6c704527d9c5b562f42566d491.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}