diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-09-12 19:14:02 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-09-21 16:31:09 +0100 |
commit | 49c80c380d665bcc7d5b68ea1ec3617e51a90d73 (patch) | |
tree | 6ec173d9830f31c0284aa7b410ff4e62023c59d9 /target | |
parent | 7208b426c7347982af8f5d6f2608cab6b3431ede (diff) | |
download | qemu-49c80c380d665bcc7d5b68ea1ec3617e51a90d73.zip qemu-49c80c380d665bcc7d5b68ea1ec3617e51a90d73.tar.gz qemu-49c80c380d665bcc7d5b68ea1ec3617e51a90d73.tar.bz2 |
nvic: Handle v8M changes in nvic_exec_prio()
Update nvic_exec_prio() to support the v8M changes:
* BASEPRI, FAULTMASK and PRIMASK are all banked
* AIRCR.PRIS can affect NS priorities
* AIRCR.BFHFNMINS affects FAULTMASK behaviour
These changes mean that it's no longer possible to
definitely say that if FAULTMASK is set it overrides
PRIMASK, and if PRIMASK is set it overrides BASEPRI
(since if PRIMASK_NS is set and AIRCR.PRIS is set then
whether that 0x80 priority should take effect or the
priority in BASEPRI_S depends on the value of BASEPRI_S,
for instance). So we switch to the same approach used
by the pseudocode of working through BASEPRI, PRIMASK
and FAULTMASK and overriding the previous values if
needed.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1505240046-11454-16-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target')
0 files changed, 0 insertions, 0 deletions