Skip to content

Commit 1c6fd6c

Browse files
committed
Change user to supervisor in mcounteren.rs comments
1 parent 4be384d commit 1c6fd6c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/register/mcounteren.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ pub struct Mcounteren {
99
}
1010

1111
impl Mcounteren {
12-
/// User "cycle[h]" Enable
12+
/// Supervisor "cycle[h]" Enable
1313
#[inline]
1414
pub fn cy(&self) -> bool {
1515
self.bits.get_bit(0)
1616
}
1717

18-
/// User "time[h]" Enable
18+
/// Supervisor "time[h]" Enable
1919
#[inline]
2020
pub fn tm(&self) -> bool {
2121
self.bits.get_bit(1)
2222
}
2323

24-
/// User "instret[h]" Enable
24+
/// Supervisor "instret[h]" Enable
2525
#[inline]
2626
pub fn ir(&self) -> bool {
2727
self.bits.get_bit(2)
2828
}
2929

30-
/// User "hpm[x]" Enable (bits 3-31)
30+
/// Supervisor "hpm[x]" Enable (bits 3-31)
3131
#[inline]
3232
pub fn hpm(&self, index: usize) -> bool {
3333
assert!(3 <= index && index < 32);
@@ -41,15 +41,15 @@ set!(0x306, __set_mcounteren);
4141
clear!(0x306, __clear_mcounteren);
4242

4343
set_clear_csr!(
44-
/// User cycle Enable
44+
/// Supervisor cycle Enable
4545
, set_cy, clear_cy, 1 << 0);
4646

4747
set_clear_csr!(
48-
/// User time Enable
48+
/// Supervisor time Enable
4949
, set_tm, clear_tm, 1 << 1);
5050

5151
set_clear_csr!(
52-
/// User instret Enable
52+
/// Supervisor instret Enable
5353
, set_ir, clear_ir, 1 << 2);
5454

5555
#[inline]

0 commit comments

Comments
 (0)