diff options
author | DJ Delorie <dj@redhat.com> | 2007-12-19 20:55:03 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2007-12-19 20:55:03 +0000 |
commit | beb7a8835e06f30b212561bd0d6c71eaddf76b83 (patch) | |
tree | e9f599e17817c086d82c2e2933adfa50f472a68a /sim/frv/frv.c | |
parent | 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> (diff) | |
download | binutils-gdb-beb7a8835e06f30b212561bd0d6c71eaddf76b83.tar.gz binutils-gdb-beb7a8835e06f30b212561bd0d6c71eaddf76b83.tar.bz2 binutils-gdb-beb7a8835e06f30b212561bd0d6c71eaddf76b83.zip |
* frv/frv.c (frvbf_cut): Only look at the six LSBs of
cut_point.
Diffstat (limited to 'sim/frv/frv.c')
-rw-r--r-- | sim/frv/frv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/frv/frv.c b/sim/frv/frv.c index 2bf1366c70d..138b5d4008c 100644 --- a/sim/frv/frv.c +++ b/sim/frv/frv.c @@ -1055,6 +1055,7 @@ SI frvbf_cut (SIM_CPU *current_cpu, SI reg1, SI reg2, SI cut_point) { SI result; + cut_point &= 0x3f; if (cut_point < 32) { result = reg1 << cut_point; |