If no -expected-id's listed then do not check ID's.
The code has not been tested, just posting for comments.
No "0 is wildcard" ref. my "do not override the meaning
of integers" hobbyhorse.
--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
### Eclipse Workspace Patch 1.0
#P openocd
Index: src/jtag/core.c
===================================================================
--- src/jtag/core.c (revision 2777)
+++ src/jtag/core.c (working copy)
@@ -955,14 +955,19 @@
/* Loop over the expected identification codes and test for a match */
uint8_t ii;
+
+ if (tap->expected_ids_cnt == 0)
+ {
+ jtag_examine_chain_display(LOG_LVL_WARNING, "NO CHECK",
+ tap->dotted_name, tap->idcode);
+ /* no id's to match against */
+ return true;
+ }
+
for (ii = 0; ii < tap->expected_ids_cnt; ii++)
{
if (tap->idcode == tap->expected_ids[ii])
return true;
-
- /* treat "-expected-id 0" as a "don't-warn" wildcard */
- if (0 == tap->expected_ids[ii])
- return true;
}
/* If none of the expected ids matched, warn */
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development