From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THHh1-00077j-P9 for qemu-devel@nongnu.org; Thu, 27 Sep 2012 13:16:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THHgy-00026P-5j for qemu-devel@nongnu.org; Thu, 27 Sep 2012 13:16:07 -0400 Received: from hall.aurel32.net ([88.191.126.93]:41364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THHgy-0001z3-0I for qemu-devel@nongnu.org; Thu, 27 Sep 2012 13:16:04 -0400 From: Aurelien Jarno Date: Thu, 27 Sep 2012 19:15:09 +0200 Message-Id: <1348766113-18373-10-git-send-email-aurelien@aurel32.net> In-Reply-To: <1348766113-18373-1-git-send-email-aurelien@aurel32.net> References: <1348766113-18373-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 09/13] tcg: start with local temps in TEMP_VAL_MEM state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno 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. Signed-off-by: Aurelien Jarno --- tcg/tcg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 71dd2ad..9e12be8 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -781,7 +781,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; } -- 1.7.10.4