Signed-off-by: Øyvind Harboe <[email protected]>
---
 src/target/cortex_a8.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c
index 0f5c742..a2f3ea0 100644
--- a/src/target/cortex_a8.c
+++ b/src/target/cortex_a8.c
@@ -191,7 +191,9 @@ static int cortex_a8_read_regs_through_mem(struct target 
*target, uint32_t addre
                return retval;
 
        dap_ap_select(swjdp, swjdp_memoryap);
-       mem_ap_read_buf_u32(swjdp, (uint8_t *)(&regfile[1]), 4*15, address);
+       retval = mem_ap_read_buf_u32(swjdp, (uint8_t *)(&regfile[1]), 4*15, 
address);
+       if (retval != ERROR_OK)
+               return retval;
        dap_ap_select(swjdp, swjdp_debugap);
 
        return retval;
-- 
1.7.0.4

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to