Commit cdcf4e51aab3e84c0db8abe2c1d6bbab32c4a363
1 parent
2fdbad25
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 <aurelien@aurel32.net> Acked-by: Edgar E. Iglesias <edgar@axis.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5165 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
target-cris/translate.c
... | ... | @@ -1268,7 +1268,7 @@ static inline void t_gen_sext(TCGv d, TCGv s, int size) |
1268 | 1268 | tcg_gen_ext8s_i32(d, s); |
1269 | 1269 | else if (size == 2) |
1270 | 1270 | tcg_gen_ext16s_i32(d, s); |
1271 | - else if(d != s) | |
1271 | + else if(GET_TCGV(d) != GET_TCGV(s)) | |
1272 | 1272 | tcg_gen_mov_tl(d, s); |
1273 | 1273 | } |
1274 | 1274 | |
... | ... | @@ -1278,7 +1278,7 @@ static inline void t_gen_zext(TCGv d, TCGv s, int size) |
1278 | 1278 | tcg_gen_ext8u_i32(d, s); |
1279 | 1279 | else if (size == 2) |
1280 | 1280 | tcg_gen_ext16u_i32(d, s); |
1281 | - else if (d != s) | |
1281 | + else if (GET_TCGV(d) != GET_TCGV(s)) | |
1282 | 1282 | tcg_gen_mov_tl(d, s); |
1283 | 1283 | } |
1284 | 1284 | ... | ... |