diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-05 14:19:27 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-05 14:19:27 +0000 |
commit | cdcf4e51aab3e84c0db8abe2c1d6bbab32c4a363 (patch) | |
tree | 9c01064032807b26d9a08351d894072c229fdb73 | |
parent | 2fdbad255e73c7422dacd43bd0d2e627270104de (diff) |
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
-rw-r--r-- | 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 c43992e351..7666cba411 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); } |