target/arm: Add v8M stack checks on exception entry
commitc32da7aa6205a5ff62ae8d5062f7cad0eae4c1fd
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Oct 2018 13:55:04 +0000 (8 14:55 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Oct 2018 13:55:04 +0000 (8 14:55 +0100)
treefe4eea85bcc1f758f57c242bb580d1ad9bf0c581
parenta2d12f0f34e9c5ef8a193556fde983aa186fa73a
target/arm: Add v8M stack checks on exception entry

Add checks for breaches of the v8M stack limit when the
stack pointer is decremented to push the exception frame
for exception entry.

Note that the exception-entry case is unique in that the
stack pointer is updated to be the limit value if the limit
is hit (per rule R_ZLZG).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20181002163556.10279-7-peter.maydell@linaro.org
target/arm/helper.c