/* reg.c --- register set model for RX simulator.
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2016 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
}
default:
- if (id >= 1 || id <= 15)
+ if (id >= 1 && id <= 15)
regs.r[id] = v;
else
abort ();