]> git.sur5r.net Git - openocd/commitdiff
Fix idcode end of chain flag.
authorMathias K <kesmtp@freenet.de>
Wed, 9 May 2012 14:24:35 +0000 (16:24 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 26 Jun 2012 12:01:28 +0000 (12:01 +0000)
For multi core cpus with cores without an idcode this doesn't work
because the extra bit for every core and a n-bit shift in the data
stream.

Change-Id: Iba0ad9422ea55c01492b27b936d028719be31180
Signed-off-by: Mathias K <kesmtp@freenet.de>
Reviewed-on: http://openocd.zylin.com/618
Tested-by: jenkins
Reviewed-by: Bill Traynor <wmat@alphatroop.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/core.c

index 63f319a3f96906c648d5781248556762f3f21210..55abe7593cf8169d47a8c70e09289775cfb451a8 100644 (file)
@@ -894,7 +894,7 @@ void jtag_sleep(uint32_t us)
 /* A reserved manufacturer ID is used in END_OF_CHAIN_FLAG, so we
  * know that no valid TAP will have it as an IDCODE value.
  */
-#define END_OF_CHAIN_FLAG       0x000000ff
+#define END_OF_CHAIN_FLAG       0xffffffff
 
 /* a larger IR length than we ever expect to autoprobe */
 #define JTAG_IRLEN_MAX          60