summaryrefslogtreecommitdiff
path: root/src/jtag/core.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-16 00:23:00 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-16 00:23:00 +0000
commit5f9b74d0557ec577b45d7af18312bab58098c9d9 (patch)
treeb64201d781c926d1db56fe12ce0601473bbd9d8a /src/jtag/core.c
parent03803a9d792d613e60fcc0b5e810e68488e17b87 (diff)
downloadopenocd_libswd-5f9b74d0557ec577b45d7af18312bab58098c9d9.tar.gz
openocd_libswd-5f9b74d0557ec577b45d7af18312bab58098c9d9.tar.bz2
openocd_libswd-5f9b74d0557ec577b45d7af18312bab58098c9d9.tar.xz
openocd_libswd-5f9b74d0557ec577b45d7af18312bab58098c9d9.zip
David Brownell <david-b@pacbell.net>:
Doc update: say "jtag newtap ... -disable" records the state after exiting the RESET state, matching the only implementation we're working with so far (TI ICEpick-C). Matching code updates. Now we can be sure that the "enabled" flag value is correct after JTAG resets. git-svn-id: svn://svn.berlios.de/openocd/trunk@2246 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/core.c')
-rw-r--r--src/jtag/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index 347196c0..0cec11ad 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -792,6 +792,8 @@ static int jtag_reset_callback(enum jtag_event event, void *priv)
if (event == JTAG_TRST_ASSERTED)
{
+ tap->enabled = !tap->disabled_after_reset;
+
buf_set_ones(tap->cur_instr, tap->ir_length);
tap->bypass = 1;
}