[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] target/arm: ensure we use current exception state after S
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2] target/arm: ensure we use current exception state after SCR update |
Date: |
Mon, 16 Dec 2019 13:38:08 +0000 |
On Thu, 12 Dec 2019 at 11:47, Alex Bennée <address@hidden> wrote:
>
> A write to the SCR can change the effective EL by droppping the system
> from secure to non-secure mode. However if we use a cached current_el
> from before the change we'll rebuild the flags incorrectly. To fix
> this we introduce the ARM_CP_NEWEL CP flag to indicate the new EL
> should be used when recomputing the flags.
>
> Signed-off-by: Alex Bennée <address@hidden>
> Tested-by: Philippe Mathieu-Daudé <address@hidden>
> Cc: Richard Henderson <address@hidden>
> Message-Id: <address@hidden>
>
> ---
Applied to target-arm.next, thanks (I added a cc-stable).
-- PMM