arch-arm: Fix incorrect t{0,1}sz field in TTBCR
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 27 Jun 2018 08:35:11 +0000 (09:35 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 28 Jun 2018 12:48:54 +0000 (12:48 +0000)
The t0sz and t1sz fields in TTBCR only are only three bits wide unlike
aarch64 which has a 6-bit wide field. The higher bits of the
aarch64-equivalent should be treated as RES0.

Change-Id: I60df73105c34500c0348a44a491c117e9b28f18f
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11589
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>

src/arch/arm/miscregs.hh

index f9386b41263c6a62270e94b218046f747739cf4f..1a88c927e063f53fcfab59be6463c95a03b714c2 100644 (file)
@@ -1722,13 +1722,13 @@ namespace ArmISA
         Bitfield<4> pd0;
         Bitfield<5> pd1;
         // Long-descriptor translation table format
-        Bitfield<5, 0> t0sz;
+        Bitfield<2, 0> t0sz;
         Bitfield<7> epd0;
         Bitfield<9, 8> irgn0;
         Bitfield<11, 10> orgn0;
         Bitfield<13, 12> sh0;
         Bitfield<14> tg0;
-        Bitfield<21, 16> t1sz;
+        Bitfield<18, 16> t1sz;
         Bitfield<22> a1;
         Bitfield<23> epd1;
         Bitfield<25, 24> irgn1;