[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 20/20] target/arm: Implement BXNS, and banked st
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 20/20] target/arm: Implement BXNS, and banked stack pointers |
Date: |
Tue, 29 Aug 2017 09:31:34 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
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 <address@hidden>
> ---
> 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 <address@hidden>
r~
- Re: [Qemu-devel] [PATCH 14/20] target/arm: Make MPU_RNR register banked for v8M, (continued)
[Qemu-devel] [PATCH 18/20] target/arm: Make CFSR register banked for v8M, Peter Maydell, 2017/08/22
[Qemu-devel] [PATCH 16/20] target/arm: Make CCR register banked for v8M, Peter Maydell, 2017/08/22
[Qemu-devel] [PATCH 19/20] target/arm: Move regime_is_secure() to target/arm/internals.h, Peter Maydell, 2017/08/22
[Qemu-devel] [PATCH 20/20] target/arm: Implement BXNS, and banked stack pointers, Peter Maydell, 2017/08/22
- Re: [Qemu-devel] [PATCH 20/20] target/arm: Implement BXNS, and banked stack pointers,
Richard Henderson <=