From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kbacc-0005wT-1O for qemu-devel@nongnu.org; Fri, 05 Sep 2008 08:41:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kbacb-0005vt-7v for qemu-devel@nongnu.org; Fri, 05 Sep 2008 08:41:05 -0400 Received: from [199.232.76.173] (port=32800 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kbaca-0005vf-Ua for qemu-devel@nongnu.org; Fri, 05 Sep 2008 08:41:04 -0400 Received: from hall.aurel32.net ([91.121.138.14]:35355) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kbacb-0004GN-9P for qemu-devel@nongnu.org; Fri, 05 Sep 2008 08:41:05 -0400 Date: Fri, 5 Sep 2008 14:41:01 +0200 From: Aurelien Jarno Message-ID: <20080905124101.GA22225@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Sender: Aurelien Jarno Subject: [Qemu-devel] [PATCH] TCG fixes for target-cris Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" This patch fixes TCG errors reported on the CRIS target when TCG_DEBUG is enabled. Signed-off-by: Aurelien Jarno --- target-cris/translate.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-cris/translate.c b/target-cris/translate.c index c43992e..7666cba 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -1268,7 +1268,7 @@ static inline void t_gen_sext(TCGv d, TCGv s, int size) tcg_gen_ext8s_i32(d, s); else if (size == 2) tcg_gen_ext16s_i32(d, s); - else if(d != s) + else if(GET_TCGV(d) != GET_TCGV(s)) tcg_gen_mov_tl(d, s); } @@ -1278,7 +1278,7 @@ static inline void t_gen_zext(TCGv d, TCGv s, int size) tcg_gen_ext8u_i32(d, s); else if (size == 2) tcg_gen_ext16u_i32(d, s); - else if (d != s) + else if (GET_TCGV(d) != GET_TCGV(s)) tcg_gen_mov_tl(d, s); } -- 1.5.6.5 -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net