From a5b3a36bf3dbd7197d3ea7eef53347a86ab5fa62 Mon Sep 17 00:00:00 2001 From: Jordi Vaquero Date: Fri, 24 Jul 2020 10:26:15 +0200 Subject: [PATCH] arch-arm: Fix Trap to EL1 on register DC CVAU Change-Id: I8add9fc8595bb1ac0a7de9778bd4544a01b94ee4 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31774 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini Tested-by: kokoro --- src/arch/arm/insts/misc64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/arm/insts/misc64.cc b/src/arch/arm/insts/misc64.cc index 49cc6b0f8..f9f00f06a 100644 --- a/src/arch/arm/insts/misc64.cc +++ b/src/arch/arm/insts/misc64.cc @@ -146,7 +146,7 @@ MiscRegOp64::checkEL1Trap(ThreadContext *tc, const MiscRegIndex misc_reg, break; case MISCREG_DC_CVAU_Xt: trap_to_sup = !sctlr.uci && (!hcr.tge || (!scr.ns && !scr.eel2)) && - el == EL1; + el == EL0; break; case MISCREG_CTR_EL0: trap_to_sup = el == EL0 && !sctlr.uct && -- 2.30.2