qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 94f4af0] tcg: allocate s->op_dead_iargs dynamical


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 94f4af0] tcg: allocate s->op_dead_iargs dynamically
Date: Sun, 04 Oct 2009 13:40:17 -0000

From: Aurelien Jarno <address@hidden>

Similarly to what is already done in tcg_liveness_analysis() when
USE_LIVENESS_ANALYSIS is not set.

Signed-off-by: Aurelien Jarno <address@hidden>

diff --git a/tcg/tcg.c b/tcg/tcg.c
index 3d74809..9f57b6a 100644
--- 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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]