diff options
author | Peter Maydell | 2017-09-04 16:21:53 +0200 |
---|---|---|
committer | Peter Maydell | 2017-09-04 16:21:53 +0200 |
commit | 15b3f556bab4f961bf92141eb8521c8da3df5eb2 (patch) | |
tree | abfae05454a9ca80faefd84248d2288b49682cd8 /qemu-io.c | |
parent | target/arm: Don't calculate lr in arm_v7m_cpu_do_interrupt() until needed (diff) | |
download | qemu-15b3f556bab4f961bf92141eb8521c8da3df5eb2.tar.gz qemu-15b3f556bab4f961bf92141eb8521c8da3df5eb2.tar.xz qemu-15b3f556bab4f961bf92141eb8521c8da3df5eb2.zip |
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 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions