From: Aurelien Jarno Date: Tue, 9 Oct 2012 19:53:07 +0000 (+0200) Subject: tcg: start with local temps in TEMP_VAL_MEM state X-Git-Tag: v1.3.0-rc0~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7dfd8c6aa1d0691d03c5ccc9b0c5a93bcf00f768;p=thirdparty%2Fqemu.git tcg: start with local temps in TEMP_VAL_MEM state Start with local temps in TEMP_VAL_MEM state, to make possible a later check that all the temps are correctly saved back to memory. Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno --- diff --git a/tcg/tcg.c b/tcg/tcg.c index d81b62883ab..83336673aa9 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -776,7 +776,11 @@ static void tcg_reg_alloc_start(TCGContext *s) } for(i = s->nb_globals; i < s->nb_temps; i++) { ts = &s->temps[i]; - ts->val_type = TEMP_VAL_DEAD; + if (ts->temp_local) { + ts->val_type = TEMP_VAL_MEM; + } else { + ts->val_type = TEMP_VAL_DEAD; + } ts->mem_allocated = 0; ts->fixed_reg = 0; }