diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-12 16:12:50 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-12 16:12:50 +0200 |
commit | f3bc52385cacca63565d453ff4a63856f7686bce (patch) | |
tree | 16193a3d3f2a1d04874c5f32feda3f21fe90c60a | |
parent | 22d83b140e7b2dda555b7e3035050454f8764b7f (diff) | |
download | hqemu-f3bc52385cacca63565d453ff4a63856f7686bce.zip hqemu-f3bc52385cacca63565d453ff4a63856f7686bce.tar.gz |
CRIS: Fix bmi.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
-rw-r--r-- | target-cris/translate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index e12be4e..b3d0a19 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -957,7 +957,8 @@ static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond) else if (dc->cc_size == 2) bits = 15; - tcg_gen_shri_tl(cc, cc_result, 31); + tcg_gen_shri_tl(cc, cc_result, bits); + tcg_gen_andi_tl(cc, cc, 1); } else { cris_evaluate_flags(dc); |