@@ -146,9 +146,9 @@ enum NEORV32_CSR_enum {
146
146
CSR_DSCRATCH0 = 0x7b2 , /**< 0x7b2 - dscratch0 (-/-): Debug scratch register */
147
147
148
148
/* machine counters and timers */
149
- CSR_MCYCLE = 0xb00 , /**< 0xb00 - mcycle (r/w): Machine cycle counter low word */
150
- CSR_MINSTRET = 0xb02 , /**< 0xb02 - minstret (r/w): Machine instructions-retired counter low word */
151
-
149
+ CSR_MCYCLE = 0xb00 , /**< 0xb00 - mcycle (r/w): Machine cycle counter low word */
150
+ //CSR_MTIME = 0xb01 , /**< 0xb01 - mtime (r/w): MAchine time counter low word */
151
+ CSR_MINSTRET = 0xb02 , /**< 0xb02 - minstret (r/w): Machine instructions-retired counter low word */
152
152
CSR_MHPMCOUNTER3 = 0xb03 , /**< 0xb03 - mhpmcounter3 (r/w): Machine hardware performance monitor 3 counter low word */
153
153
CSR_MHPMCOUNTER4 = 0xb04 , /**< 0xb04 - mhpmcounter4 (r/w): Machine hardware performance monitor 4 counter low word */
154
154
CSR_MHPMCOUNTER5 = 0xb05 , /**< 0xb05 - mhpmcounter5 (r/w): Machine hardware performance monitor 5 counter low word */
@@ -179,9 +179,9 @@ enum NEORV32_CSR_enum {
179
179
CSR_MHPMCOUNTER30 = 0xb1e , /**< 0xb1e - mhpmcounter30 (r/w): Machine hardware performance monitor 30 counter low word */
180
180
CSR_MHPMCOUNTER31 = 0xb1f , /**< 0xb1f - mhpmcounter31 (r/w): Machine hardware performance monitor 31 counter low word */
181
181
182
- CSR_MCYCLEH = 0xb80 , /**< 0xb80 - mcycleh (r/w): Machine cycle counter high word */
183
- CSR_MINSTRETH = 0xb82 , /**< 0xb82 - minstreth (r/w): Machine instructions-retired counter high word */
184
-
182
+ CSR_MCYCLEH = 0xb80 , /**< 0xb80 - mcycleh (r/w): Machine cycle counter high word */
183
+ //CSR_MTIMEH = 0xb81 , /**< 0xb81 - mtimeh (r/w): Machine time counter high word */
184
+ CSR_MINSTRETH = 0xb82 , /**< 0xb82 - minstreth (r/w): Machine instructions-retired counter high word */
185
185
CSR_MHPMCOUNTER3H = 0xb83 , /**< 0xb83 - mhpmcounter3h (r/w): Machine hardware performance monitor 3 counter high word */
186
186
CSR_MHPMCOUNTER4H = 0xb84 , /**< 0xb84 - mhpmcounter4h (r/w): Machine hardware performance monitor 4 counter high word */
187
187
CSR_MHPMCOUNTER5H = 0xb85 , /**< 0xb85 - mhpmcounter5h (r/w): Machine hardware performance monitor 5 counter high word */
@@ -213,9 +213,9 @@ enum NEORV32_CSR_enum {
213
213
CSR_MHPMCOUNTER31H = 0xb9f , /**< 0xb9f - mhpmcounter31h (r/w): Machine hardware performance monitor 31 counter high word */
214
214
215
215
/* user counters and timers */
216
- CSR_CYCLE = 0xc00 , /**< 0xc00 - cycle (r/-): Cycle counter low word (from MCYCLE) */
217
- CSR_INSTRET = 0xc02 , /**< 0xc02 - instret (r/-): Instructions-retired counter low word (from MINSTRET) */
218
-
216
+ CSR_CYCLE = 0xc00 , /**< 0xc00 - cycle (r/-): Cycle counter low word (from MCYCLE) */
217
+ CSR_TIME = 0xc01 , /**< 0xc01 - time (r/-): Time counter low word */
218
+ CSR_INSTRET = 0xc02 , /**< 0xc02 - instret (r/-): Instructions-retired counter low word (from MINSTRET) */
219
219
CSR_HPMCOUNTER3 = 0xc03 , /**< 0xc03 - hpmcounter3 (r/-): User hardware performance monitor 3 counter low word */
220
220
CSR_HPMCOUNTER4 = 0xc04 , /**< 0xc04 - hpmcounter4 (r/-): User hardware performance monitor 4 counter low word */
221
221
CSR_HPMCOUNTER5 = 0xc05 , /**< 0xc05 - hpmcounter5 (r/-): User hardware performance monitor 5 counter low word */
@@ -246,9 +246,9 @@ enum NEORV32_CSR_enum {
246
246
CSR_HPMCOUNTER30 = 0xc1e , /**< 0xc1e - hpmcounter30 (r/-): User hardware performance monitor 30 counter low word */
247
247
CSR_HPMCOUNTER31 = 0xc1f , /**< 0xc1f - hpmcounter31 (r/-): User hardware performance monitor 31 counter low word */
248
248
249
- CSR_CYCLEH = 0xc80 , /**< 0xc80 - cycleh (r/-): Cycle counter high word (from MCYCLEH) */
250
- CSR_INSTRETH = 0xc82 , /**< 0xc82 - instreth (r/-): Instructions-retired counter high word (from MINSTRETH) */
251
-
249
+ CSR_CYCLEH = 0xc80 , /**< 0xc80 - cycleh (r/-): Cycle counter high word (from MCYCLEH) */
250
+ CSR_TIMEH = 0xc81 , /**< 0xc81 - timeh (r/-): Time counter high word */
251
+ CSR_INSTRETH = 0xc82 , /**< 0xc82 - instreth (r/-): Instructions-retired counter high word (from MINSTRETH) */
252
252
CSR_HPMCOUNTER3H = 0xc83 , /**< 0xc83 - hpmcounter3h (r/-): User hardware performance monitor 3 counter high word */
253
253
CSR_HPMCOUNTER4H = 0xc84 , /**< 0xc84 - hpmcounter4h (r/-): User hardware performance monitor 4 counter high word */
254
254
CSR_HPMCOUNTER5H = 0xc85 , /**< 0xc85 - hpmcounter5h (r/-): User hardware performance monitor 5 counter high word */
0 commit comments