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>
This commit is contained in:
committed by
Andreas Fritiofson
parent
bf3f35092e
commit
fc2abe63fd
@@ -140,6 +140,21 @@ static const struct {
|
||||
.n_indices = ARRAY_SIZE(arm_mon_indices),
|
||||
.indices = arm_mon_indices,
|
||||
},
|
||||
|
||||
/* These special modes are currently only supported
|
||||
* by ARMv6M and ARMv7M profiles */
|
||||
{
|
||||
.name = "Thread",
|
||||
.psr = ARM_MODE_THREAD,
|
||||
},
|
||||
{
|
||||
.name = "Thread (User)",
|
||||
.psr = ARM_MODE_USER_THREAD,
|
||||
},
|
||||
{
|
||||
.name = "Handler",
|
||||
.psr = ARM_MODE_HANDLER,
|
||||
},
|
||||
};
|
||||
|
||||
/** Map PSR mode bits to the name of an ARM processor operating mode. */
|
||||
|
||||
Reference in New Issue
Block a user