aboutsummaryrefslogtreecommitdiff
path: root/src/target/mips_m4k.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2019-06-24 18:28:31 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-03-12 10:10:33 +0000
commit6900c5af4ec3f6df52227169d7d897eb14a44bca (patch)
tree7184ed8e9a6ffbe67dfd0371cafd290e73248d2b /src/target/mips_m4k.c
parent9626402c5a65423d4e4e9091f710b542522ca125 (diff)
armv7a: access monitor registers only with security extensions
Accordingly to ARM DDI 0406C at B1.5, the security extensions for armv7a are optional extensions and can be detected by reading ID_PFR1. The monitor mode is part of the security extensions and the shadow registers "sp_mon", "lr_mon" and "spsr_mon" are only present with the security extensions. Read the register ID_PFR1 during cortex_a examine, determine if security extension is present and then conditionally enable the visibility of the monitor mode shadow registers. Change-Id: Ib4834698659046566f6dc5cd35b44de122dc02e5 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5259 Tested-by: jenkins
Diffstat (limited to 'src/target/mips_m4k.c')
0 files changed, 0 insertions, 0 deletions