X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fmn10300%2Fdv-mn103iop.c;h=25acbb0421642458cb3c15a7c07c7dd055379715;hb=3922b302645fda04da42a5279399578ae2f6206c;hp=15a299d0c9858cbc02df68eaef1909fd5d753f0d;hpb=7b6bb8daaceb9ecf3f42dea57ae82733d6a3b2f6;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/mn10300/dv-mn103iop.c b/sim/mn10300/dv-mn103iop.c index 15a299d0c9..25acbb0421 100644 --- a/sim/mn10300/dv-mn103iop.c +++ b/sim/mn10300/dv-mn103iop.c @@ -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."); }