From 6f78eb1ec13253a8e654647e805bd39e0c5a1338 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Sun, 5 Feb 2017 18:21:34 -0800 Subject: [PATCH] Add the first difference for 0.13 targets. Just to confirm the 0.13 code takes a different path. Change-Id: I7f1c9c8f3b586aee001dbeef2213f5f2e6a94f36 --- src/target/riscv/riscv-013.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 09b6a4895..84c83dc82 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -1806,7 +1806,7 @@ static int examine(struct target *target) LOG_ERROR("dtmcontrol is 0. Check JTAG connectivity/board power."); return ERROR_FAIL; } - if (get_field(dtmcontrol, DTMCONTROL_VERSION) != 0) { + if (get_field(dtmcontrol, DTMCONTROL_VERSION) != 1) { LOG_ERROR("Unsupported DTM version %d. (dtmcontrol=0x%x)", get_field(dtmcontrol, DTMCONTROL_VERSION), dtmcontrol); return ERROR_FAIL;