diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-07 09:09:06 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-07 09:09:06 +0000 |
commit | 84903467ec1c55c4c754dc2624b2050882baf0b2 (patch) | |
tree | 518afa231f3554a5fafb8400de1fbb757789c7d1 | |
parent | d40fd9e0f42c32d180a580962d76d55e73be8232 (diff) | |
download | openocd+libswd-84903467ec1c55c4c754dc2624b2050882baf0b2.tar.gz openocd+libswd-84903467ec1c55c4c754dc2624b2050882baf0b2.tar.bz2 openocd+libswd-84903467ec1c55c4c754dc2624b2050882baf0b2.tar.xz openocd+libswd-84903467ec1c55c4c754dc2624b2050882baf0b2.zip |
- fix segfault introduced during cortex reg cleanup
git-svn-id: svn://svn.berlios.de/openocd/trunk@2575 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/target/armv7m.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/armv7m.c b/src/target/armv7m.c index f8c84306..9fa6c241 100644 --- a/src/target/armv7m.c +++ b/src/target/armv7m.c @@ -26,7 +26,7 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * * - * ARMv7-M Architecture, Application Level Reference Manual * + * ARMv7-M Architecture, Application Level Reference Manual * * ARM DDI 0405C (September 2008) * * * ***************************************************************************/ @@ -454,7 +454,7 @@ int armv7m_run_algorithm(struct target_s *target, int num_mem_params, mem_param_ } } - for (i = ARMV7M_NUM_REGS; i >= 0; i--) + for (i = ARMV7M_NUM_REGS - 1; i >= 0; i--) { uint32_t regvalue; regvalue = buf_get_u32(armv7m->core_cache->reg_list[i].value, 0, 32); |