/* frv simulator support code
- Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2007
- Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2007, 2008, 2009, 2010,
+ 2011 Free Software Foundation, Inc.
Contributed by Red Hat.
This file is part of the GNU simulators.
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;