projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a9dccc
)
tcg: allocate s->op_dead_iargs dynamically
author
Aurelien Jarno
<aurelien@aurel32.net>
Sun, 4 Oct 2009 13:30:44 +0000
(15:30 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Sun, 4 Oct 2009 13:30:44 +0000
(15:30 +0200)
Similarly to what is already done in tcg_liveness_analysis() when
USE_LIVENESS_ANALYSIS is not set.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/tcg.c
patch
|
blob
|
history
diff --git
a/tcg/tcg.c
b/tcg/tcg.c
index 3d7480919003c22575609640d636ef0eea023f02..9f57b6a2d38646660130ca05fec0944ee7a5118f 100644
(file)
--- a/
tcg/tcg.c
+++ b/
tcg/tcg.c
@@
-1086,8
+1086,7
@@
static void tcg_liveness_analysis(TCGContext *s)
nb_ops = gen_opc_ptr - gen_opc_buf;
- /* XXX: make it really dynamic */
- s->op_dead_iargs = tcg_malloc(OPC_BUF_SIZE * sizeof(uint16_t));
+ s->op_dead_iargs = tcg_malloc(nb_ops * sizeof(uint16_t));
dead_temps = tcg_malloc(s->nb_temps);
memset(dead_temps, 1, s->nb_temps);