target/arm: Add v8M stack checks for MSR to SP_NS
commit167765f0739e4a108e8c2e2ff2f37917df5658f9
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Oct 2018 13:55:05 +0000 (8 14:55 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Oct 2018 13:55:05 +0000 (8 14:55 +0100)
treee901024509980fb27e2f0aaaa56350d26d472943
parent8a954faf5412d5073d585d85a1da63a09bb5d84e
target/arm: Add v8M stack checks for MSR to SP_NS

Updating the NS stack pointer via MSR to SP_NS should include
a check whether the new SP value is below the stack limit.
No other kinds of update to the various stack pointer and
limit registers via MSR should perform a check.

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-14-peter.maydell@linaro.org
target/arm/helper.c