target/arm: Make v7m_push_callee_stack() honour MPU
commit65b4234ff73a4d4865438ce30bdfaaa499464efa
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 9 Feb 2018 10:40:27 +0000 (9 10:40 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 9 Feb 2018 10:40:27 +0000 (9 10:40 +0000)
tree6a6d8a4d3ca933804ebca6d632f35d7c19d2edc1
parentfd592d890ec40e3686760de84044230a8ebb1eb3
target/arm: Make v7m_push_callee_stack() honour MPU

Make v7m_push_callee_stack() honour the MPU by using the
new v7m_stack_write() function. We return a flag to indicate
whether the pushes failed, which we can then use in
v7m_exception_taken() to cause us to handle the derived
exception correctly.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1517324542-6607-6-git-send-email-peter.maydell@linaro.org
target/arm/helper.c