Re: [PATCH 10/10] target/arm: Forbid return to AArch32 when CPU is AArch64-only

2025-03-13 Thread Peter Maydell
On Thu, 6 Mar 2025 at 16:39, Peter Maydell wrote: > > In the Arm ARM, rule R_TYTWB states that returning to AArch32 > is an illegal exception return if: > * AArch32 is not supported at any exception level > * the target EL is configured for AArch64 via SCR_EL3.RW >or HCR_EL2.RW or via CPU st

[PATCH 10/10] target/arm: Forbid return to AArch32 when CPU is AArch64-only

2025-03-08 Thread Peter Maydell
In the Arm ARM, rule R_TYTWB states that returning to AArch32 is an illegal exception return if: * AArch32 is not supported at any exception level * the target EL is configured for AArch64 via SCR_EL3.RW or HCR_EL2.RW or via CPU state at reset We check the second of these, but not the first (

Re: [PATCH 10/10] target/arm: Forbid return to AArch32 when CPU is AArch64-only

2025-03-06 Thread Richard Henderson
On 3/6/25 08:39, Peter Maydell wrote: In the Arm ARM, rule R_TYTWB states that returning to AArch32 is an illegal exception return if: * AArch32 is not supported at any exception level * the target EL is configured for AArch64 via SCR_EL3.RW or HCR_EL2.RW or via CPU state at reset We che