armv7m: Add a dummy register at the end of the register list.

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
__archive__
Mathias K 2012-03-13 21:59:19 +01:00 committed by Spencer Oliver
parent dbb8de15e3
commit 5d02d2de43
1 changed files with 3 additions and 1 deletions

View 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 {