projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13b6a45
)
target-ppc: Fix Temporary Variable Leak in bctar
author
Tom Musta
<tommusta@gmail.com>
Wed, 4 Jun 2014 17:26:02 +0000
(12:26 -0500)
committer
Alexander Graf
<agraf@suse.de>
Mon, 16 Jun 2014 11:24:42 +0000
(13:24 +0200)
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>
target-ppc/translate.c
patch
|
blob
|
history
diff --git
a/target-ppc/translate.c
b/target-ppc/translate.c
index 71e38a52e6f71c36774ccf120598e36981d815ef..6affe7e617ad626c651445789eeb120d3ebe6382 100644
(file)
--- 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);
}
}