adi_v5_jtag: fix build break when open DEBUG_WAIT macro 04/4804/2
authorYanLin Zhu <zhuyanlin@pinecone.net>
Fri, 14 Dec 2018 05:17:15 +0000 (13:17 +0800)
committerMatthias Welwarsky <matthias@welwarsky.de>
Mon, 17 Dec 2018 10:02:15 +0000 (10:02 +0000)
DEBUG_WAIT is useful to debug adi_jtag issue,
and the WCR register is replaced by DLCR for DP registers update
in commit 150b7d26f213398d717bf46744811b48834a3744.

Change-Id: I3faa9ea8a6adacd3d5275e40382801da731db32f
Signed-off-by: YanLin Zhu <zhuyanlin@pinecone.net>
Reviewed-on: http://openocd.zylin.com/4804
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Christopher Head <chead@zaber.com>
src/target/adi_v5_jtag.c

index 8c20611..ad4183b 100644 (file)
@@ -72,8 +72,8 @@ static const char *dap_reg_name(int instr, int reg_addr)
                case DP_RDBUFF:
                        reg_name =  "RDBUFF";
                        break;
-               case DP_WCR:
-                       reg_name =  "WCR";
+               case DP_DLCR:
+                       reg_name =  "DLCR";
                        break;
                default:
                        reg_name = "UNK";