From 2d63dd4b5b01df2406cda71ee1fb08968b14fd0a Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Mon, 17 Jun 2013 15:46:26 +1200 Subject: Fix register array sizes. --- src/cortexm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cortexm.c') 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 */ -- cgit v1.2.3