Re: [PATCH 15/35] target/arm: Set SPSR_EL1.M correctly when nested virt is enabled

2023-12-27 Thread Richard Henderson
On 12/18/23 22:32, Peter Maydell wrote: FEAT_NV requires that when HCR_EL2.{NV,NV1} == {1,0} and an exception is taken from EL1 to EL1 then the reported EL in SPSR_EL1.M should be EL2, not EL1. Implement this behaviour. Signed-off-by: Peter Maydell --- target/arm/helper.c | 6 ++ 1 file

[PATCH 15/35] target/arm: Set SPSR_EL1.M correctly when nested virt is enabled

2023-12-18 Thread Peter Maydell
FEAT_NV requires that when HCR_EL2.{NV,NV1} == {1,0} and an exception is taken from EL1 to EL1 then the reported EL in SPSR_EL1.M should be EL2, not EL1. Implement this behaviour. Signed-off-by: Peter Maydell --- target/arm/helper.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/targ