aboutsummaryrefslogtreecommitdiff
path: root/target-cris/translate.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-12 16:12:50 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-12 16:12:50 +0200
commitf3bc52385cacca63565d453ff4a63856f7686bce (patch)
tree16193a3d3f2a1d04874c5f32feda3f21fe90c60a /target-cris/translate.c
parent22d83b140e7b2dda555b7e3035050454f8764b7f (diff)
CRIS: Fix bmi.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-cris/translate.c')
-rw-r--r--target-cris/translate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c
index e12be4ef11..b3d0a19edb 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);