diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2009-10-12 14:10:49 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2009-10-12 14:10:49 +0200 |
commit | 0ca473468c94e28599ad56bd6b671c04d9d88849 (patch) | |
tree | 75483f3b35b2b88a8333bcbfcfc4279a816bebf2 | |
parent | 165e3a1468dbcca54d6d8f7e603b1e9ddfb74636 (diff) | |
download | riscv-openocd-0ca473468c94e28599ad56bd6b671c04d9d88849.zip riscv-openocd-0ca473468c94e28599ad56bd6b671c04d9d88849.tar.gz riscv-openocd-0ca473468c94e28599ad56bd6b671c04d9d88849.tar.bz2 |
Propagate wDTR/rDTR failure immediately, otherwise it's followed up by timeout errors.
-rw-r--r-- | src/target/arm11.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 588ea3c..915bee6 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -610,6 +610,7 @@ int arm11_leave_debug_state(arm11_common_t * arm11) if (DSCR & (ARM11_DSCR_RDTR_FULL | ARM11_DSCR_WDTR_FULL)) { LOG_ERROR("wDTR/rDTR inconsistent (DSCR %08" PRIx32 ")", DSCR); + return ERROR_FAIL; } } |