armv7m: Check exception return consistency
commitaa488fe3bb5460c6675800ccd80f6dccbbd70159
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 12:08:19 +0000 (28 12:08 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 12:08:19 +0000 (28 12:08 +0000)
tree7bdaadadae7c270049e14f8fdca1a1abcdfba756
parent39ae2474e337247e5930e8be783b689adc9f6215
armv7m: Check exception return consistency

Implement the exception return consistency checks
described in the v7M pseudocode ExceptionReturn().

Inspired by a patch from Michael Davidsaver's series, but
this is a reimplementation from scratch based on the
ARM ARM pseudocode.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
hw/intc/armv7m_nvic.c
target/arm/cpu.h
target/arm/helper.c