summaryrefslogtreecommitdiff
path: root/src/target/arm7_9_common.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-04 17:31:23 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-04 17:31:23 +0000
commit56a1fed30982c01f76cdfe3544a5943b7192df17 (patch)
tree9f4ba0794f3fc2c4a7f346cc8ff6205f5c035cc5 /src/target/arm7_9_common.c
parentc7e9d09e966b582731b4c2036e83092cb3555fc8 (diff)
downloadopenocd+libswd-56a1fed30982c01f76cdfe3544a5943b7192df17.tar.gz
openocd+libswd-56a1fed30982c01f76cdfe3544a5943b7192df17.tar.bz2
openocd+libswd-56a1fed30982c01f76cdfe3544a5943b7192df17.tar.xz
openocd+libswd-56a1fed30982c01f76cdfe3544a5943b7192df17.zip
arm7_9_execute_sys_speed error propagation. Found by code inspection, no observed problems as such.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1132 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm7_9_common.c')
-rw-r--r--src/target/arm7_9_common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index d7684c5e..4fd97c5c 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -2016,9 +2016,11 @@ int arm7_9_read_memory(struct target_s *target, u32 address, u32 size, u32 count
* from a sufficiently high clock (32 kHz is usually too slow)
*/
if (arm7_9->fast_memory_access)
- arm7_9_execute_fast_sys_speed(target);
+ retval = arm7_9_execute_fast_sys_speed(target);
else
- arm7_9_execute_sys_speed(target);
+ retval = arm7_9_execute_sys_speed(target);
+ if (retval != ERROR_OK)
+ return retval;
arm7_9->read_core_regs_target_buffer(target, reg_list, buffer, 4);