aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm.c
diff options
context:
space:
mode:
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 */