mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
sim: mn10300: fix typo in if check
The code looks like it should be doing a bit check, not logical. URL: http://sourceware.org/bugzilla/show_bug.cgi?id=9302 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-11-07 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
PR sim/9302
|
||||||
|
* dv-mn103iop.c (write_dedicated_control_reg): Convert && to &.
|
||||||
|
|
||||||
2011-10-19 Mike Frysinger <vapier@gentoo.org>
|
2011-10-19 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* configure: Regenerate after common/acinclude.m4 update.
|
* configure: Regenerate after common/acinclude.m4 update.
|
||||||
|
@ -463,7 +463,7 @@ write_dedicated_control_reg (struct hw *me,
|
|||||||
/* select on io_port_reg: */
|
/* select on io_port_reg: */
|
||||||
if ( io_port_reg == P2SS )
|
if ( io_port_reg == P2SS )
|
||||||
{
|
{
|
||||||
if ( (buf && 0xfc) != 0 )
|
if ( (buf & 0xfc) != 0 )
|
||||||
{
|
{
|
||||||
hw_abort(me, "Cannot write to read-only bits in p2ss.");
|
hw_abort(me, "Cannot write to read-only bits in p2ss.");
|
||||||
}
|
}
|
||||||
@ -474,7 +474,7 @@ write_dedicated_control_reg (struct hw *me,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( (buf && 0xf0) != 0 )
|
if ( (buf & 0xf0) != 0 )
|
||||||
{
|
{
|
||||||
hw_abort(me, "Cannot write to read-only bits in p4ss.");
|
hw_abort(me, "Cannot write to read-only bits in p4ss.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user