From: Giacomo Travaglini Date: Mon, 18 Dec 2017 15:06:51 +0000 (+0000) Subject: arch-arm: Adding MiscReg Priv (EL1) global flag X-Git-Tag: v19.0.0.0~2151 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c31181958b53971f5940b80678fa4646ddb6c12;p=gem5.git arch-arm: Adding MiscReg Priv (EL1) global flag This patch introduces a single global flag for setting RW access permission at EL1 level, in either secure and non-secure mode. Change-Id: I35df66a73349044ca996b5c04c5a2476f3a7abdf Signed-off-by: Giacomo Travaglini Reviewed-by: Nikos Nikoleris Reviewed-by: Curtis Dunham Reviewed-on: https://gem5-review.googlesource.com/10042 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- diff --git a/src/arch/arm/isa.hh b/src/arch/arm/isa.hh index c10a88a37..c8ae5c22d 100644 --- a/src/arch/arm/isa.hh +++ b/src/arch/arm/isa.hh @@ -199,6 +199,11 @@ namespace ArmISA info[MISCREG_PRI_NS_WR] = v; return *this; } + chain privNonSecure(bool v = true) const { + privNonSecureRead(v); + privNonSecureWrite(v); + return *this; + } chain privSecureRead(bool v = true) const { info[MISCREG_PRI_S_RD] = v; return *this; @@ -212,6 +217,11 @@ namespace ArmISA privSecureWrite(v); return *this; } + chain priv(bool v = true) const { + privSecure(v); + privNonSecure(v); + return *this; + } chain hypRead(bool v = true) const { info[MISCREG_HYP_RD] = v; return *this;