From 5d02d2de43d1c0f4302f5d5cbfe51bbbe87854bd Mon Sep 17 00:00:00 2001 From: Mathias K Date: Tue, 13 Mar 2012 21:59:19 +0100 Subject: [PATCH] armv7m: Add a dummy register at the end of the register list. Signed-off-by: Mathias K Change-Id: I0bfad091bd8adabd949fc0a74ef3a08a514eb307 Reviewed-on: http://openocd.zylin.com/519 Reviewed-by: Peter Stuge Tested-by: jenkins --- src/target/armv7m.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/target/armv7m.h b/src/target/armv7m.h index cee2b605..35bd62a6 100644 --- a/src/target/armv7m.h +++ b/src/target/armv7m.h @@ -93,6 +93,8 @@ enum { ARMV7M_BASEPRI, ARMV7M_FAULTMASK, ARMV7M_CONTROL, + + ARMV7M_LAST_REG, }; #define ARMV7M_COMMON_MAGIC 0x2A452A45 @@ -140,7 +142,7 @@ struct armv7m_algorithm { enum armv7m_mode core_mode; - uint32_t context[ARMV7M_CONTROL + 1]; /* ARMV7M_NUM_REGS */ + uint32_t context[ARMV7M_LAST_REG]; /* ARMV7M_NUM_REGS */ }; struct armv7m_core_reg { -- 2.39.5