aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm.c
diff options
context:
space:
mode:
authorGareth McMullin2013-06-17 15:46:26 +1200
committerGareth McMullin2013-06-17 15:52:15 +1200
commit2d63dd4b5b01df2406cda71ee1fb08968b14fd0a (patch)
treed25d9a9f89551ab942eeb56d3941ed76a1cb9739 /src/cortexm.c
parentdf32aad757935c8953c844ffaa455fa940b4b405 (diff)
Fix register array sizes.
Diffstat (limited to 'src/cortexm.c')
-rw-r--r--src/cortexm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cortexm.c b/src/cortexm.c
index 130f683..7819598 100644
--- a/src/cortexm.c
+++ b/src/cortexm.c
@@ -667,7 +667,7 @@ static int cortexm_fault_unwind(struct target_s *target)
* for a configurable fault to avoid catching core resets */
if((hfsr & CORTEXM_HFSR_FORCED) || cfsr) {
/* Unwind exception */
- uint32_t regs[target->regs_size];
+ uint32_t regs[target->regs_size / 4];
uint32_t stack[8];
uint32_t retcode, framesize;
/* Read registers for post-exception stack pointer */