target/arm: Create and use new function arm_v7m_is_handler_mode()
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 14:21:53 +0000 (15:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 14:21:53 +0000 (15:21 +0100)
commit15b3f556bab4f961bf92141eb8521c8da3df5eb2
treeabfae05454a9ca80faefd84248d2288b49682cd8
parentbd70b29ba92e4446f9e4eb8b9acc19ef6ff4a4d5
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
target/arm/cpu.h
target/arm/helper.c
This page took 0.02437 seconds and 4 git commands to generate.