binutils-gdb/sim
Mike Frysinger b72cc8e145 sim: bfin: fix GPIO logic bugs when processing events
We need the DIR bit cleared, not set, in order for the pin to be treated
as an input.

When looking up the data value, we need to shift the "level" value over by
"my_port" rather than "bit" as the latter has already been shifted over.
We also should normalize the "level" coming in from the outside worlds to
the set of {0,1} since those are the only values that matter to GPIOs.

We need the BOTH bit set, not cleared, in order for the pin to trigger
on both edges.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-03-25 00:13:23 +00:00
..
arm
avr
bfin sim: bfin: fix GPIO logic bugs when processing events 2011-03-25 00:13:23 +00:00
common * gennltvals.sh: Search sys/_default_fcntl.h, in addition to 2011-03-21 22:06:55 +00:00
cr16
cris
d10v
erc32 http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html 2011-01-11 14:19:34 +00:00
frv
h8300 http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html 2011-01-11 14:19:34 +00:00
igen sim: punt zfree() 2011-02-14 05:14:28 +00:00
iq2000 sim: punt zfree() 2011-02-14 05:14:28 +00:00
lm32
m32c http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html 2011-01-11 14:19:34 +00:00
m32r
m68hc11
mcore
microblaze
mips sim: punt zfree() 2011-02-14 05:14:28 +00:00
mn10300 http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html 2011-01-11 14:19:34 +00:00
moxie
ppc sim: punt zfree() 2011-02-14 05:14:28 +00:00
rx http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html 2011-01-11 14:19:34 +00:00
sh
sh64 sim: punt zfree() 2011-02-14 05:14:28 +00:00
testsuite
v850 * simops (OP_10007E0): Update errno handling as most traps 2011-03-21 22:05:56 +00:00
.gitignore
ChangeLog sim: bfin: new port 2011-03-06 00:20:21 +00:00
MAINTAINERS sim: bfin: new port 2011-03-06 00:20:21 +00:00
Makefile.in
README-HACKING
configure sim: bfin: new port 2011-03-06 00:20:21 +00:00
configure.ac
configure.tgt sim: bfin: new port 2011-03-06 00:20:21 +00:00