cortex_m: handle armv8m cores without security extension
commit77c281d2df25621782b48d0a45846b93fba3860d
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 14 Dec 2022 14:54:53 +0000 (14 15:54 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 18 Dec 2022 21:52:41 +0000 (18 21:52 +0000)
treef4869c5fa3dc09f95760a1c6bcadd14403948466
parentc913e4d5a6cafab9a19735c440be8d0c111b2088
cortex_m: handle armv8m cores without security extension

Cores armv8m, e.g. Cortex-M33, can be instantiated without the
optional Security Extension.
In this case, the secure registers are not present and when GDB
try accessing them it triggers a set of errors.

For armv8m cores without security extension, don't provide to GDB
the description of the secure registers.

Change-Id: I254478a4cf883e85b786df3f62c726b2f40d88d9
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reported-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7402
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/target/cortex_m.c
src/target/cortex_m.h