Re: [Qemu-devel] [PATCH 19/20] target/arm: Implement secure function return

2017-10-05 Thread Richard Henderson
On 09/22/2017 11:00 AM, Peter Maydell wrote: > Secure function return happens when a non-secure function has been > called using BLXNS and so has a particular magic LR value (either > 0xfefe or 0xfeff). The function return via BX behaves > specially when the new PC value is this magic value

[Qemu-devel] [PATCH 19/20] target/arm: Implement secure function return

2017-09-22 Thread Peter Maydell
Secure function return happens when a non-secure function has been called using BLXNS and so has a particular magic LR value (either 0xfefe or 0xfeff). The function return via BX behaves specially when the new PC value is this magic value, in the same way that exception returns are handled.