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:
Nick Clifton 2015-04-24 15:31:36 +01:00
parent b1fa9dd630
commit 63c72d1ae4
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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 ();