diff options
| author | Tom Musta | 2014-06-04 19:26:02 +0200 |
|---|---|---|
| committer | Alexander Graf | 2014-06-16 13:24:42 +0200 |
| commit | a9e8f4e7df385a6c704527d9c5b562f42566d491 (patch) | |
| tree | a7327796c563dc0aa3026bec85422531275b252d | |
| parent | PPC: e500: Merge 32 and 64 bit SPE emulation (diff) | |
| download | qemu-a9e8f4e7df385a6c704527d9c5b562f42566d491.tar.gz qemu-a9e8f4e7df385a6c704527d9c5b562f42566d491.tar.xz qemu-a9e8f4e7df385a6c704527d9c5b562f42566d491.zip | |
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); } } |
