diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-02-09 10:40:27 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-02-09 10:40:27 +0000 |
commit | 5ede82b8ccb652382c106d53f656ed67997d76e8 (patch) | |
tree | 5cb07376ff9a1fb8f4fde333a8b081cd7ecffd23 /fsdev | |
parent | 04bb7fe2bf55bdf66d5b7a5a719b40bbb4048178 (diff) | |
download | qemu-5ede82b8ccb652382c106d53f656ed67997d76e8.zip |
target/arm: Add armv7m_nvic_set_pending_derived()
In order to support derived exceptions (exceptions generated in
the course of trying to take an exception), we need to be able
to handle prioritizing whether to take the original exception
or the derived exception.
We do this by introducing a new function
armv7m_nvic_set_pending_derived() which the exception-taking code in
helper.c will call when a derived exception occurs. Derived
exceptions are dealt with mostly like normal pending exceptions, so
we share the implementation with the armv7m_nvic_set_pending()
function.
Note that the way we structure this is significantly different
from the v8M Arm ARM pseudocode: that does all the prioritization
logic in the DerivedLateArrival() function, whereas we choose to
let the existing "identify highest priority exception" logic
do the prioritization for us. The effect is the same, though.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1517324542-6607-2-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'fsdev')
0 files changed, 0 insertions, 0 deletions