From d4b3e064adeeace3c3e7d106801f95c14637c12f Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 25 Oct 2018 10:39:50 +0100 Subject: [PATCH] arch-arm: IMPDEF for SYS instruction with CRn = {11, 15} According to the arm arm, a SYS instruction (op0 = 1) with CRn = (11 or 15) is implementation defined; this makes it trappable by having HCR_EL2.TIDCP = 1. Change-Id: Idd94ac345fee652ee6f8c0a7eb7b06ac75ec38ef Signed-off-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/13780 Maintainer: Andreas Sandberg --- src/arch/arm/miscregs.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/arch/arm/miscregs.cc b/src/arch/arm/miscregs.cc index 07123bd7d..ebe72dd52 100644 --- a/src/arch/arm/miscregs.cc +++ b/src/arch/arm/miscregs.cc @@ -1228,6 +1228,11 @@ decodeAArch64SysReg(unsigned op0, unsigned op1, break; } break; + case 11: + case 15: + // SYS Instruction with CRn = { 11, 15 } + // (Trappable by HCR_EL2.TIDCP) + return MISCREG_IMPDEF_UNIMPL; } break; case 2: -- 2.30.2