mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 20:26:20 +00:00
tcg: allocate s->op_dead_iargs dynamically
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>
This commit is contained in:
parent
8389c67b82
commit
94f4af02a1
@ -1086,8 +1086,7 @@ static void tcg_liveness_analysis(TCGContext *s)
|
|||||||
|
|
||||||
nb_ops = gen_opc_ptr - gen_opc_buf;
|
nb_ops = gen_opc_ptr - gen_opc_buf;
|
||||||
|
|
||||||
/* XXX: make it really dynamic */
|
s->op_dead_iargs = tcg_malloc(nb_ops * sizeof(uint16_t));
|
||||||
s->op_dead_iargs = tcg_malloc(OPC_BUF_SIZE * sizeof(uint16_t));
|
|
||||||
|
|
||||||
dead_temps = tcg_malloc(s->nb_temps);
|
dead_temps = tcg_malloc(s->nb_temps);
|
||||||
memset(dead_temps, 1, s->nb_temps);
|
memset(dead_temps, 1, s->nb_temps);
|
||||||
|
Loading…
Reference in New Issue
Block a user