aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-06-08 19:38:55 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-06-08 19:38:55 +0100
commit61a8c23a3b56607ee6e745b4cf7975170df88801 (patch)
tree840fcc6a6742767b793554263c59131b300d14df
parent8b599e5c0274cd5e4a33be6a10d6cd04631a74d1 (diff)
target/arm: Remove route_to_el2 check from sve_exception_el
We handle this routing in raise_exception. Promoting the value early means that we can't directly compare FPEXC_EL and SVEEXC_EL. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220607203306.657998-4-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c
index c228deca75..1bd77af7e5 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -6149,8 +6149,7 @@ int sve_exception_el(CPUARMState *env, int el)
/* fall through */
case 0:
case 2:
- /* route_to_el2 */
- return hcr_el2 & HCR_TGE ? 2 : 1;
+ return 1;
}
/* Check CPACR.FPEN. */