aboutsummaryrefslogtreecommitdiff
path: root/sim/frv
diff options
context:
space:
mode:
Diffstat (limited to 'sim/frv')
-rw-r--r--sim/frv/frv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/frv/frv.c b/sim/frv/frv.c
index 2bf1366..138b5d4 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;