GDB copyright headers update after running GDB's copyright.py script.
[deliverable/binutils-gdb.git] / sim / rx / reg.c
index 0fbd4c38c6eb5c85e47c820c3357907ab894d860..7f1e1cdf2a0ae098e16b6ca3f3f11e75c71acd52 100644 (file)
@@ -1,6 +1,6 @@
 /* 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.
@@ -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 ();
This page took 0.023965 seconds and 4 git commands to generate.