Skip to content

Commit b048583

Browse files
committed
small docs mistake
1 parent db64c6a commit b048583

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

cortex-ar/src/cache.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::register::{Dccisw, Dccsw, Dcisw};
88
///
99
/// - A: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
1010
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
11-
/// 4.
11+
/// 3.
1212
/// - N: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
1313
/// 5.
1414
/// - S: log2(NUM OF SETS). For systems with a fixed cache size, the number of sets can be
@@ -33,7 +33,7 @@ pub fn invalidate_l1_data_cache<const A: usize, const N: usize, const S: usize>(
3333
///
3434
/// - A: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
3535
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
36-
/// 4.
36+
/// 3.
3737
/// - N: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
3838
/// 5.
3939
/// - S: log2(NUM OF SETS). For systems with a fixed cache size, the number of sets can be
@@ -58,7 +58,7 @@ pub fn clean_l1_data_cache<const A: usize, const N: usize, const S: usize>() {
5858
///
5959
/// - A: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
6060
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
61-
/// 4.
61+
/// 3.
6262
/// - N: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
6363
/// 5.
6464
/// - S: log2(NUM OF SETS). For systems with a fixed cache size, the number of sets can be

cortex-ar/src/register/dccisw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Dccisw {
1313
///
1414
/// - A: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
1515
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
16-
/// 4.
16+
/// 3.
1717
/// - N: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
1818
/// 5.
1919
#[inline]
@@ -28,7 +28,7 @@ impl Dccisw {
2828
///
2929
/// - a: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
3030
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
31-
/// 4.
31+
/// 3.
3232
/// - n: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
3333
/// 5.
3434
#[inline]

cortex-ar/src/register/dccsw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Dccsw {
1313
///
1414
/// - A: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
1515
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
16-
/// 4.
16+
/// 3.
1717
/// - N: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
1818
/// 5.
1919
#[inline]
@@ -28,7 +28,7 @@ impl Dccsw {
2828
///
2929
/// - a: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
3030
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
31-
/// 4.
31+
/// 3.
3232
/// - n: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
3333
/// 5.
3434
#[inline]

cortex-ar/src/register/dcisw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Dcisw {
1313
///
1414
/// - A: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
1515
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
16-
/// 4.
16+
/// 3.
1717
/// - N: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
1818
/// 5.
1919
#[inline]
@@ -28,7 +28,7 @@ impl Dcisw {
2828
///
2929
/// - a: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way
3030
/// associative cache will have a value of 2 and a 8-way associative cache will have a value of
31-
/// 4.
31+
/// 3.
3232
/// - n: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of
3333
/// 5.
3434
#[inline]

0 commit comments

Comments
 (0)