]> git.sur5r.net Git - openocd/commitdiff
Propagate wDTR/rDTR failure immediately, otherwise it's followed up by timeout errors.
authorØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 12 Oct 2009 12:10:49 +0000 (14:10 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 12 Oct 2009 12:10:49 +0000 (14:10 +0200)
src/target/arm11.c

index 588ea3c27598a0f2ce8541ba087b0fbc4d6e3403..915bee6472ccfe9e4bc4508f2fcbb4764f37dd9e 100644 (file)
@@ -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;
                }
        }