File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,25 +9,25 @@ pub struct Mcounteren {
99}
1010
1111impl Mcounteren {
12- /// Supervisor "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- /// Supervisor "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- /// Supervisor "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- /// Supervisor "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 ) ;
Original file line number Diff line number Diff line change @@ -9,25 +9,25 @@ pub struct Scounteren {
99}
1010
1111impl Scounteren {
12- /// User "cycle[h ]" Enable
12+ /// User "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+ /// User "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+ /// User "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+ /// User "hpm\[x\ ]" Enable (bits 3-31)
3131 #[ inline]
3232 pub fn hpm ( & self , index : usize ) -> bool {
3333 assert ! ( 3 <= index && index < 32 ) ;
You can’t perform that action at this time.
0 commit comments