aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/reg.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-04-24 15:31:36 +0100
committerNick Clifton <nickc@redhat.com>2015-04-24 15:31:36 +0100
commit63c72d1ae497cdf43db5347464a97164e720b83f (patch)
tree366f9bcb0cb5d905d5e3fb0332901dda751aefc7 /sim/rx/reg.c
parentb1fa9dd630eeb0a8282207cbbe399a25b2491412 (diff)
downloadgdb-63c72d1ae497cdf43db5347464a97164e720b83f.zip
gdb-63c72d1ae497cdf43db5347464a97164e720b83f.tar.gz
gdb-63c72d1ae497cdf43db5347464a97164e720b83f.tar.bz2
Fix typo in check for valid register number in RX sim.
PR sim/18273 * reg.c (put_reg): Fix check for valid register number.
Diffstat (limited to 'sim/rx/reg.c')
-rw-r--r--sim/rx/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/rx/reg.c b/sim/rx/reg.c
index 0fbd4c3..6effe4b 100644
--- a/sim/rx/reg.c
+++ b/sim/rx/reg.c
@@ -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 ();