From: Giacomo Travaglini Date: Thu, 25 Oct 2018 09:39:50 +0000 (+0100) Subject: arch-arm: IMPDEF for SYS instruction with CRn = {11, 15} X-Git-Tag: v19.0.0.0~1453 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4b3e064adeeace3c3e7d106801f95c14637c12f;p=gem5.git 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 --- 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: