diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-05 23:20:05 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-05 23:20:05 +0000 |
commit | 5a63bcb2d27675a3fc2c5bc8a8c323e5c756e749 (patch) | |
tree | f25e4c5339ff58b3b475676dfd1341ed3b2dd7b7 /target-mips/op_helper.c | |
parent | acd858d91f73fe310627e2b92a8fdd529ec06ade (diff) |
Fix rotr immediate ops, mask shift/rotate arguments to their allowed
size.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2614 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op_helper.c')
-rw-r--r-- | target-mips/op_helper.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index 7b6442e8f8..ba02f0d84f 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -120,8 +120,7 @@ void do_drotr (void) if (T1) { tmp = T0 << (0x40 - T1); T0 = (T0 >> T1) | tmp; - } else - T0 = T1; + } } void do_drotr32 (void) @@ -131,8 +130,7 @@ void do_drotr32 (void) if (T1) { tmp = T0 << (0x40 - (32 + T1)); T0 = (T0 >> (32 + T1)) | tmp; - } else - T0 = T1; + } } void do_dsllv (void) |