This patch fixes a bug in jtag_add_ir_scan() and the regression in 1669.
I haven't done the analisys, but I believe this problem was lurking there
all the time...
### Eclipse Workspace Patch 1.0
#P openocd
Index: src/jtag/jtag.c
===================================================================
--- src/jtag/jtag.c (revision 1672)
+++ src/jtag/jtag.c (working copy)
@@ -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++)
--
Øyvind Harboe
Embedded software and hardware consulting services
http://consulting.zylin.com
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development