summaryrefslogtreecommitdiffstats
path: root/memory.c
diff options
context:
space:
mode:
authorPeter Maydell2017-09-04 16:21:53 +0200
committerPeter Maydell2017-09-04 16:21:53 +0200
commit15b3f556bab4f961bf92141eb8521c8da3df5eb2 (patch)
treeabfae05454a9ca80faefd84248d2288b49682cd8 /memory.c
parenttarget/arm: Don't calculate lr in arm_v7m_cpu_do_interrupt() until needed (diff)
downloadqemu-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 'memory.c')
0 files changed, 0 insertions, 0 deletions