On 08/22/2017 08:08 AM, Peter Maydell wrote: > Implement the BXNS v8M instruction, which is like BX but will do a > jump-and-switch-to-NonSecure if the branch target address has bit 0 > clear. > > This is the first piece of code which implements "switch to the > other security state", so the commit also includes the code to > switch the stack pointers around, which is the only complicated > part of switching security state. > > BLXNS is more complicated than just "BXNS but set the link register", > so we leave it for a separate commit. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > target/arm/cpu.h | 13 +++++++++ > target/arm/helper.h | 2 ++ > target/arm/translate.h | 1 + > target/arm/helper.c | 79 > ++++++++++++++++++++++++++++++++++++++++++++++++++ > target/arm/machine.c | 2 ++ > target/arm/translate.c | 42 ++++++++++++++++++++++++++- > 6 files changed, 138 insertions(+), 1 deletion(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~