mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target/arm: Make PRIMASK register banked for v8M
Make the PRIMASK register banked if v8M security extensions are enabled. Note that we do not yet implement the functionality of the new AIRCR.PRIS bit (which allows the effect of the NS copy of PRIMASK to be restricted). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 1503414539-28762-8-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
acf949411f
commit
6d80483419
4 changed files with 11 additions and 6 deletions
|
@ -169,7 +169,7 @@ static inline int nvic_exec_prio(NVICState *s)
|
|||
|
||||
if (env->v7m.faultmask) {
|
||||
running = -1;
|
||||
} else if (env->v7m.primask) {
|
||||
} else if (env->v7m.primask[env->v7m.secure]) {
|
||||
running = 0;
|
||||
} else if (env->v7m.basepri[env->v7m.secure] > 0) {
|
||||
running = env->v7m.basepri[env->v7m.secure] & nvic_gprio_mask(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue