Fix typo in check for valid register number in RX sim.
PR sim/18273 * reg.c (put_reg): Fix check for valid register number.
This commit is contained in:
parent
b1fa9dd630
commit
63c72d1ae4
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-04-24 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR sim/18273
|
||||
* reg.c (put_reg): Fix check for valid register number.
|
||||
|
||||
2015-04-13 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* configure: Regenerate.
|
||||
|
|
|
@ -253,7 +253,7 @@ put_reg (int id, unsigned int v)
|
|||
}
|
||||
|
||||
default:
|
||||
if (id >= 1 || id <= 15)
|
||||
if (id >= 1 && id <= 15)
|
||||
regs.r[id] = v;
|
||||
else
|
||||
abort ();
|
||||
|
|
Loading…
Reference in a new issue