aboutsummaryrefslogtreecommitdiff
path: root/sim/bfin/dv-bfin_otp.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-24 03:17:14 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-24 03:17:14 +0000
commit9922f80319007ace0ad526d70019b3b5fee72a8d (patch)
tree7b6d8f6a4ada526ce0ffbfe49df57c50fd82f1b3 /sim/bfin/dv-bfin_otp.c
parent2d2bab5b21dda6842a044364fc6082722c2befc1 (diff)
downloadfsf-binutils-gdb-9922f80319007ace0ad526d70019b3b5fee72a8d.zip
fsf-binutils-gdb-9922f80319007ace0ad526d70019b3b5fee72a8d.tar.gz
fsf-binutils-gdb-9922f80319007ace0ad526d70019b3b5fee72a8d.tar.bz2
sim: bfin: fix inverted W1C logic
When I originally wrote the w1c helper funcs, I used it in a few places. Then I forgot how it worked and when I later documented it, I described the 3rd arg in the exact opposite way it is actually used. This error propagated to a bunch of devices registers that were not explicitly tested (a bunch of the devices are stubs which merely exist to say "no device is connected" to make device drivers happy). So once the documentation is unscrewed, fix all of the broken call sites. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/bfin/dv-bfin_otp.c')
-rw-r--r--sim/bfin/dv-bfin_otp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/bfin/dv-bfin_otp.c b/sim/bfin/dv-bfin_otp.c
index 34bfb8d..5b15eeb 100644
--- a/sim/bfin/dv-bfin_otp.c
+++ b/sim/bfin/dv-bfin_otp.c
@@ -149,7 +149,7 @@ bfin_otp_io_write_buffer (struct hw *me, const void *source, int space,
case mmr_offset(status):
dv_bfin_mmr_require_16 (me, addr, nr_bytes, true);
/* XXX: All bits seem to be W1C. */
- dv_w1c_2 (value16p, value, 0);
+ dv_w1c_2 (value16p, value, -1);
break;
case mmr_offset(timing):
case mmr_offset(data0):