diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-09-04 15:21:53 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-09-04 15:21:53 +0100 |
commit | 15b3f556bab4f961bf92141eb8521c8da3df5eb2 (patch) | |
tree | abfae05454a9ca80faefd84248d2288b49682cd8 /hw/intc/armv7m_nvic.c | |
parent | bd70b29ba92e4446f9e4eb8b9acc19ef6ff4a4d5 (diff) |
target/arm: Create and use new function arm_v7m_is_handler_mode()
Add a utility function for testing whether the CPU is in Handler
mode; this is just a check whether v7m.exception is non-zero, but
we do it in several places and it makes the code a bit easier
to read to not have to mentally figure out what the test is testing.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1501692241-23310-14-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'hw/intc/armv7m_nvic.c')
0 files changed, 0 insertions, 0 deletions