arm: Change access permission in TPIDRURO and TPIDRURW
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 30 Nov 2017 13:35:05 +0000 (13:35 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 8 Dec 2017 18:23:09 +0000 (18:23 +0000)
This patch corrects the TPIDRURO and TPIDRURW access flags: TPIDRURO is
now readable in secure user mode, an TPIDRURW is readable and writable
in secure user mode.

Change-Id: I6293d9a3bcc7adc0f655bf98d29aca51eca5a002
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Chuan Zhu <chuan.zhu@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/6381
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/arch/arm/miscregs.cc

index 826e567264243d4003ffeda32c37d26e52f118de..ece55243943971bfa080bfa29d4b5c1cbe6b71da 100644 (file)
@@ -686,13 +686,13 @@ bitset<NUM_MISCREG_INFOS> miscRegInfo[NUM_MISCREGS] = {
     // MISCREG_TPIDRURW_NS
     bitset<NUM_MISCREG_INFOS>(string("11001111111111100001")),
     // MISCREG_TPIDRURW_S
-    bitset<NUM_MISCREG_INFOS>(string("00110011000000100001")),
+    bitset<NUM_MISCREG_INFOS>(string("00110011001100100001")),
     // MISCREG_TPIDRURO
     bitset<NUM_MISCREG_INFOS>(string("00000000000000010001")),
     // MISCREG_TPIDRURO_NS
     bitset<NUM_MISCREG_INFOS>(string("11001111110101100001")),
     // MISCREG_TPIDRURO_S
-    bitset<NUM_MISCREG_INFOS>(string("00110011000000100001")),
+    bitset<NUM_MISCREG_INFOS>(string("00110011000100100001")),
     // MISCREG_TPIDRPRW
     bitset<NUM_MISCREG_INFOS>(string("00000000000000010001")),
     // MISCREG_TPIDRPRW_NS