aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv7m.h
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2013-01-10 12:48:15 +0000
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-02-02 16:21:41 +0000
commitfc2abe63fd3cea7497da7be2955d333bd3f800b9 (patch)
tree1fb9a62ccad401300abf3e9227aa0106d8c934e0 /src/target/armv7m.h
parentbf3f35092ea96b33ceda33d497ec04514e94cb00 (diff)
downloadriscv-openocd-fc2abe63fd3cea7497da7be2955d333bd3f800b9.zip
riscv-openocd-fc2abe63fd3cea7497da7be2955d333bd3f800b9.tar.gz
riscv-openocd-fc2abe63fd3cea7497da7be2955d333bd3f800b9.tar.bz2
armv7m: use generic arm::core_mode
To simplify things change over to using the generic core_mode struct rather than maintaining a armv7m specific one. Change-Id: Ibf32b785d896fef4f33307fabe0d8eb266f7086f Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/966 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/target/armv7m.h')
-rw-r--r--src/target/armv7m.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/target/armv7m.h b/src/target/armv7m.h
index bcf0ee1..4c2445b 100644
--- a/src/target/armv7m.h
+++ b/src/target/armv7m.h
@@ -40,14 +40,6 @@ extern uint8_t armv7m_gdb_dummy_cpsr_value[];
extern struct reg armv7m_gdb_dummy_cpsr_reg;
#endif
-enum armv7m_mode {
- ARMV7M_MODE_THREAD = 0,
- ARMV7M_MODE_USER_THREAD = 1,
- ARMV7M_MODE_HANDLER = 2,
- ARMV7M_MODE_ANY = -1
-};
-
-extern char *armv7m_mode_strings[];
extern const int armv7m_psp_reg_map[];
extern const int armv7m_msp_reg_map[];
@@ -166,7 +158,6 @@ struct armv7m_common {
int common_magic;
struct reg_cache *core_cache;
- enum armv7m_mode core_mode;
int exception_number;
struct adiv5_dap dap;
@@ -206,7 +197,7 @@ static inline bool is_armv7m(struct armv7m_common *armv7m)
struct armv7m_algorithm {
int common_magic;
- enum armv7m_mode core_mode;
+ enum arm_mode core_mode;
uint32_t context[ARMV7M_LAST_REG]; /* ARMV7M_NUM_REGS */
};