set instructions of all parts to BYPASS for tap_reset(), fixes

[ 1873260 ] Command 'reset' does not reset internal states


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@972 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 17 years ago
parent 1671aa2ab5
commit d24460151a

@ -1,3 +1,9 @@
2008-01-30 Arnim Laeuger <arniml@users.sourceforge.net>
* src/tap/tap.c (tap_reset): set instructions of all parts to BYPASS, fix
[ 1873260 ] Command 'reset' does not reset internal states
* src/part/part.c (parts_set_instruction): catch NULL pointer
2008-01-25 Kolja Waschk <kawk>
* include/jim.h, src/jim/tap.c, intel_28f800b3.c, Makefile.am,

@ -306,6 +306,9 @@ parts_set_instruction( parts_t *ps, const char *iname )
{
int i;
if (!ps)
return;
for (i = 0; i < ps->len; i++)
ps->parts[i]->active_instruction = part_find_instruction( ps->parts[i], iname );
}

@ -39,6 +39,8 @@ tap_reset( chain_t *chain )
chain_clock( chain, 1, 0, 5 ); /* Test-Logic-Reset */
chain_clock( chain, 0, 0, 1 ); /* Run-Test/Idle */
parts_set_instruction( chain->parts, "BYPASS" );
}
void

Loading…
Cancel
Save