Re: [PATCH v2] target/arm: ensure we use current exception state after SCR update

2019-12-16 Thread Peter Maydell
On Thu, 12 Dec 2019 at 11:47, Alex Bennée 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_NE

Re: [PATCH v2] target/arm: ensure we use current exception state after SCR update

2019-12-12 Thread Richard Henderson
On 12/12/19 3:47 AM, Alex Bennée 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

[PATCH v2] target/arm: ensure we use current exception state after SCR update

2019-12-12 Thread Alex Bennée
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 recom