File tree Expand file tree Collapse file tree 7 files changed +97
-458
lines changed Expand file tree Collapse file tree 7 files changed +97
-458
lines changed Original file line number Diff line number Diff line change 1
1
//! cycle register
2
2
//! Shadow of mcycle register
3
- //! must have mcounteren::cy bit enabled for use in supervisor mode (if implemented)
4
- //! if supervisor mode is not implemented this register will control user mode access
3
+ //! must have `scounter::cy` or ` mcounteren::cy` bit enabled depending on whether
4
+ //! S- mode is implemented or not
5
5
6
6
read_csr_as_usize ! ( 0xC00 , __read_cycle) ;
7
7
read_composite_csr ! ( super :: cycleh:: read( ) , read( ) ) ;
Original file line number Diff line number Diff line change 1
1
//! cycleh register
2
2
//! Shadow of mcycleh register (rv32)
3
- //! must have mcounteren::cy bit enabled for use in supervisor mode (if implemented)
4
- //! if supervisor mode is not implemented this register will control user mode access
3
+ //! must have `scounter::cy` or ` mcounteren::cy` bit enabled depending on whether
4
+ //! S- mode is implemented or not
5
5
6
6
read_csr_as_usize_rv32 ! ( 0xC80 , __read_cycleh) ;
Original file line number Diff line number Diff line change 1
1
//! instret register
2
2
//! Shadow of minstret register
3
- //! must have mcounteren::ir bit enabled for use in supervisor mode (if implemented)
4
- //! if supervisor mode is not implemented this register will control user mode access
3
+ //! must have `scounter::ir` or ` mcounteren::ir` bit enabled depending on whether
4
+ //! S- mode is implemented or not
5
5
6
6
read_csr_as_usize ! ( 0xC02 , __read_instret) ;
7
7
read_composite_csr ! ( super :: instreth:: read( ) , read( ) ) ;
Original file line number Diff line number Diff line change 1
1
//! instreth register
2
2
//! Shadow of minstreth register (rv32)
3
- //! must have mcounteren::ir bit enabled for use in supervisor mode (if implemented)
4
- //! if supervisor mode is not implemented this register will control user mode access
3
+ //! must have `scounter::ir` or ` mcounteren::ir` bit enabled depending on whether
4
+ //! S- mode is implemented or not
5
5
6
6
read_csr_as_usize ! ( 0xC82 , __read_instreth) ;
You can’t perform that action at this time.
0 commit comments