diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-27 20:25:20 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-27 20:25:20 +0000 |
commit | 5899f386ba9474d0bb0c055f9276d8923845cbd3 (patch) | |
tree | b94fa2f3e56f1d3b9c5d1b8678af9e63a390bf40 /target-arm/op.c | |
parent | 6a0f9e82c5bf457b958fe7918f8ff0080035f35e (diff) |
ARM thumb fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1418 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/op.c')
-rw-r--r-- | target-arm/op.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-arm/op.c b/target-arm/op.c index 08afa2f7cf..0a3811ed2f 100644 --- a/target-arm/op.c +++ b/target-arm/op.c @@ -824,12 +824,13 @@ void OPPROTO op_shrl_T0_im_thumb(void) shift = PARAM1; if (shift == 0) { - env->CF = 0; + env->CF = ((uint32_t)shift) >> 31; T0 = 0; } else { env->CF = (T0 >> (shift - 1)) & 1; T0 = T0 >> shift; } + env->NZF = T0; FORCE_RET(); } |