We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e242b commit 0e8d74eCopy full SHA for 0e8d74e
TargetLibraries/Snitch/src/CycleCounter.c
@@ -41,7 +41,7 @@ void StopTimer() {
41
}
42
uint32_t const core_id = snrt_global_core_idx();
43
timer_end[core_id] = read_csr(mcycle);
44
- timer_end[core_id] = read_csr(minstret);
+ instr_end[core_id] = read_csr(minstret);
45
running[core_id] = 0;
46
47
@@ -55,7 +55,6 @@ uint32_t getCycles() {
55
56
57
uint32_t getInstr(void) {
58
- // return read_csr(minstret);
59
60
61
if (running[core_id]) {
0 commit comments