summaryrefslogtreecommitdiff
path: root/src/target/arm7tdmi.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-07-20 08:23:59 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-07-20 08:24:53 +0200
commite0525cd182aee35549f13e786143ccc0a252aeab (patch)
tree51f6cb173c4299e2d95f757396c8a0f0918162fa /src/target/arm7tdmi.c
parenta9761c90931101d280b9443126db017f96d92e3d (diff)
downloadopenocd+libswd-e0525cd182aee35549f13e786143ccc0a252aeab.tar.gz
openocd+libswd-e0525cd182aee35549f13e786143ccc0a252aeab.tar.bz2
openocd+libswd-e0525cd182aee35549f13e786143ccc0a252aeab.tar.xz
openocd+libswd-e0525cd182aee35549f13e786143ccc0a252aeab.zip
arm_jtag_scann error propagation fixes
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/arm7tdmi.c')
-rw-r--r--src/target/arm7tdmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/arm7tdmi.c b/src/target/arm7tdmi.c
index 8befe2bf..f4ba44ac 100644
--- a/src/target/arm7tdmi.c
+++ b/src/target/arm7tdmi.c
@@ -120,7 +120,9 @@ static __inline int arm7tdmi_clock_out(struct arm_jtag *jtag_info,
uint32_t out, uint32_t *deprecated, int breakpoint)
{
int retval;
- arm_jtag_scann(jtag_info, 0x1, TAP_DRPAUSE);
+ retval = arm_jtag_scann(jtag_info, 0x1, TAP_DRPAUSE);
+ if (retval != ERROR_OK)
+ return retval;
retval = arm_jtag_set_instr(jtag_info, jtag_info->intest_instr, NULL, TAP_DRPAUSE);
if (retval != ERROR_OK)
return retval;