ld: Add PR ld/25593 tests
[deliverable/binutils-gdb.git] / sim / mn10300 / dv-mn103iop.c
index 15a299d0c9858cbc02df68eaef1909fd5d753f0d..25acbb0421642458cb3c15a7c07c7dd055379715 100644 (file)
@@ -1,7 +1,6 @@
 /*  This file is part of the program GDB, the GNU debugger.
     
-    Copyright (C) 1998, 2007, 2008, 2009, 2010, 2011
-    Free Software Foundation, Inc.
+    Copyright (C) 1998-2020 Free Software Foundation, Inc.
     Contributed by Cygnus Solutions.
     
     This program is free software; you can redistribute it and/or modify
@@ -463,7 +462,7 @@ write_dedicated_control_reg (struct hw *me,
       /* select on io_port_reg: */
       if ( io_port_reg == P2SS )
        {
-         if ( (buf && 0xfc)  != 0 )
+         if ( (buf & 0xfc)  != 0 )
            {
              hw_abort(me, "Cannot write to read-only bits in p2ss.");
            }
@@ -474,7 +473,7 @@ write_dedicated_control_reg (struct hw *me,
        }
       else
        {
-         if ( (buf && 0xf0) != 0 )
+         if ( (buf & 0xf0) != 0 )
            {
              hw_abort(me, "Cannot write to read-only bits in p4ss.");
            }
This page took 0.04721 seconds and 4 git commands to generate.