Skip to content
Snippets Groups Projects
Commit 10d0ef3e authored by Mike Nawrocki's avatar Mike Nawrocki Committed by Peter Maydell
Browse files

target/arm: Fix SCR RES1 handling


The FW and AW bits of SCR_EL3 are RES1 only in some contexts. Force them
to 1 only when there is no support for AArch32 at EL1 or above.

The reset value will be 0x30 only if the CPU is AArch64-only; if there
is support for AArch32 at EL1 or above, it will be reset to 0.

Also adds helper function isar_feature_aa64_aa32_el1 to check if AArch32
is supported at EL1 or above.

Signed-off-by: default avatarMike Nawrocki <michael.nawrocki@gtri.gatech.edu>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-id: 20210203165552.16306-2-michael.nawrocki@gtri.gatech.edu
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent af903cae
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment