darling-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 run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
avr run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
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 run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cris run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
d10v run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
erc32 http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html 2011-01-11 14:19:34 +00:00
frv run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
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 run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
m32c http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html 2011-01-11 14:19:34 +00:00
m32r run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
m68hc11 run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
mcore run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
microblaze run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
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 run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
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 run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sh64 sim: punt zfree() 2011-02-14 05:14:28 +00:00
testsuite * testutils.inc: Correct comment syntax fallout from 2011-01-05 23:12:37 +00:00
v850 * simops (OP_10007E0): Update errno handling as most traps 2011-03-21 22:05:56 +00:00
.gitignore sim: ignore generated hw-config.h 2011-01-05 17:17:44 +00:00
ChangeLog sim: bfin: new port 2011-03-06 00:20:21 +00:00
configure sim: bfin: new port 2011-03-06 00:20:21 +00:00
configure.ac sim: unify target->subdir handling for default tests 2010-04-26 16:23:24 +00:00
configure.tgt 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 run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
README-HACKING sim: add more hacking notes 2010-04-12 21:44:46 +00:00