Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Commit 2f66688

Browse files
AlbanSeuratandre-richter
authored andcommitted
correct 64kbits granules for TG1
1 parent c1d3caa commit 2f66688

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/regs/tcr_el1.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ register_bitfields! {u64,
132132

133133
/// Granule size for the TTBR1_EL1.
134134
///
135-
/// 00 4KiB
136-
/// 01 64KiB
137-
/// 10 16KiB
135+
/// 10 4KiB
136+
/// 01 16KiB
137+
/// 11 64KiB
138138
///
139139
/// Other values are reserved.
140140
///
@@ -146,9 +146,9 @@ register_bitfields! {u64,
146146
/// It is IMPLEMENTATION DEFINED whether the value read back is the value programmed or the
147147
/// value that corresponds to the size chosen.
148148
TG1 OFFSET(30) NUMBITS(2) [
149-
KiB_4 = 0b00,
150-
KiB_16 = 0b10,
151-
KiB_64 = 0b01
149+
KiB_4 = 0b10,
150+
KiB_16 = 0b01,
151+
KiB_64 = 0b11
152152
],
153153

154154
/// Shareability attribute for memory associated with translation table walks using

0 commit comments

Comments
 (0)