arch-arm: Fix fallthrough when trapping at EL2
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 24 May 2019 09:10:25 +0000 (10:10 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 24 May 2019 12:50:03 +0000 (12:50 +0000)
This had been caused by the introduction of GICv3 registers trapping in
commit 32a23114c14cebc5ec0067ac739144b50e412219

Change-Id: I5073e2891f3ff5c5a9e05d3456dad6f4f8ffba0d
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18909
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/insts/misc64.cc

index fed2d9ac85b6404b1bd007870bc2c2c0e97627d0..423aaca251997eb947c82ba1fad48bb41d00fdf7 100644 (file)
@@ -269,6 +269,7 @@ MiscRegOp64::checkEL2Trap(ThreadContext *tc, const MiscRegIndex misc_reg,
             break;
           case MISCREG_IMPDEF_UNIMPL:
             trap_to_hyp = hcr.tidcp && el == EL1;
+            break;
           // GICv3 regs
           case MISCREG_ICC_SGI0R_EL1:
             if (tc->getIsaPtr()->haveGICv3CpuIfc())