target/arm: Define new TBFLAG for v8M stack checking
commit4730fb85035e99c909db7d14ef76cd17f28f4423
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)
treeb3350a61e2e7e0e5f0afebb1fdb50ca37310f918
parent500d04843ba953dc4560e44f04001efec38c14a6
target/arm: Define new TBFLAG for v8M stack checking

The Arm v8M architecture includes hardware stack limit checking.
When certain instructions update the stack pointer, if the new
value of SP is below the limit set in the associated limit register
then an exception is taken. Add a TB flag that tracks whether
the limit-checking code needs to be emitted.

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