Re: [Qemu-devel] [PATCH 05/20] target/arm: Restore SPSEL to correct CONTROL register on exception return

2017-10-05 Thread Richard Henderson
On 09/22/2017 10:59 AM, Peter Maydell wrote: > On exception return for v8M, the SPSEL bit in the EXC_RETURN magic > value should be restored to the SPSEL bit in the CONTROL register > banked specified by the EXC_RETURN.ES bit. > > Add write_v7m_control_spsel_for_secstate() which behaves like >

[Qemu-devel] [PATCH 05/20] target/arm: Restore SPSEL to correct CONTROL register on exception return

2017-09-22 Thread Peter Maydell
On exception return for v8M, the SPSEL bit in the EXC_RETURN magic value should be restored to the SPSEL bit in the CONTROL register banked specified by the EXC_RETURN.ES bit. Add write_v7m_control_spsel_for_secstate() which behaves like write_v7m_control_spsel() but allows the caller to specify