diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-02-20 14:04:41 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-02-20 14:04:41 +0000 |
commit | 6cbf97bf937743974938464d11f5dcd0366d0709 (patch) | |
tree | 2cec3986628a27a8f39962a00334be0fc84a1e19 /translate-all.h | |
parent | b6a915dec8706e427f75231c8fc1ee728a1cef02 (diff) |
armv7m: Fix condition check for taking exceptions
The M profile condition for when we can take a pending exception or
interrupt is not the same as that for A/R profile. The code
originally copied from the A/R profile version of the
cpu_exec_interrupt function only worked by chance for the
very simple case of exceptions being masked by PRIMASK.
Replace it with a call to a function in the NVIC code that
correctly compares the priority of the pending exception
against the current execution priority of the CPU.
[Michael Davidsaver's patchset had a patch to do something
similar but the implementation ended up being a rewrite.]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'translate-all.h')
0 files changed, 0 insertions, 0 deletions