TCG fixes for target-cris
PATCH 1/1 TCG fixes for target-cris
This patch fixes TCG errors reported on the CRIS target when TCG_DEBUG is enabled.
Signed-off-by Aurelien Jarno <[email protected]>
--- target-cris/translate.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
target-cris/translate.c +2 -2
@@ -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
Quoted 2 lines · Aurelien Jarno
This patch fixes TCG errors reported on the CRIS target when
TCG_DEBUGis enabled.
Thanks!
Quoted 1 line
Signed-off-by Aurelien Jarno <[email protected]>
Quoted 36 lines
--- target-cris/translate.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)target-cris/translate.c +2
-2@@ -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