Skip to contentSkip to conversation

TCG fixes for target-cris

PATCH In review Aurelien Jarno 2 participants 2 messages Sep 5, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TCG fixes for target-cris

This patch fixes TCG errors reported on the CRIS target when TCG_DEBUG is enabled.

---
 target-cris/translate.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
target-cris/translate.c +2 -2
index c43992e..7666cba 100644
@@ -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);
 }
 
Signature · 8 lines
1.5.6.5


-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Aurelien Jarno

This patch fixes TCG errors reported on the CRIS target when TCG_DEBUG is enabled.

Thanks!

Quoted 1 line
Quoted 36 lines
---
 target-cris/translate.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
target-cris/translate.c +2 -2
index c43992e..7666cba 100644
@@ -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);
 }
 
Signature · 8 lines
1.5.6.5


-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net