]> git.sur5r.net Git - openocd/commitdiff
armv7m: Add a dummy register at the end of the register list.
authorMathias K <kesmtp@freenet.de>
Tue, 13 Mar 2012 20:59:19 +0000 (21:59 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 14 Mar 2012 20:55:22 +0000 (20:55 +0000)
Signed-off-by: Mathias K <kesmtp@freenet.de>
Change-Id: I0bfad091bd8adabd949fc0a74ef3a08a514eb307
Reviewed-on: http://openocd.zylin.com/519
Reviewed-by: Peter Stuge <peter@stuge.se>
Tested-by: jenkins
src/target/armv7m.h

index cee2b605790acfffeec1f6dc45290d12a95c1e18..35bd62a6f217051b0513b38440321ecc9b1da881 100644 (file)
@@ -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 {