From: oharboe at B. <oh...@ma...> - 2009-05-08 13:18:44
|
Author: oharboe Date: 2009-05-08 13:18:41 +0200 (Fri, 08 May 2009) New Revision: 1673 Modified: trunk/src/jtag/jtag.c Log: fix (old?) bug in jtag_add_ir_scan() Modified: trunk/src/jtag/jtag.c =================================================================== --- trunk/src/jtag/jtag.c 2009-05-08 09:48:00 UTC (rev 1672) +++ trunk/src/jtag/jtag.c 2009-05-08 11:18:41 UTC (rev 1673) @@ -540,6 +540,7 @@ u32 id[8]; int modified[8]; + /* if we are to run a verification of the ir scan, we need to get the input back. * We may have to allocate space if the caller didn't ask for the input back. * @@ -622,7 +623,7 @@ scan_size = tap->ir_length; (*last_cmd)->cmd.scan->fields[nth_tap].tap = tap; (*last_cmd)->cmd.scan->fields[nth_tap].num_bits = scan_size; - (*last_cmd)->cmd.scan->fields[nth_tap].in_value = NULL; + (*last_cmd)->cmd.scan->fields[nth_tap].in_value = fields[nth_tap].in_value; /* search the list */ for (j = 0; j < num_fields; j++) |