Skip to content

Commit 0e8d74e

Browse files
committed
Implement CodeRabbit Feedback
1 parent c1e242b commit 0e8d74e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

TargetLibraries/Snitch/src/CycleCounter.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void StopTimer() {
4141
}
4242
uint32_t const core_id = snrt_global_core_idx();
4343
timer_end[core_id] = read_csr(mcycle);
44-
timer_end[core_id] = read_csr(minstret);
44+
instr_end[core_id] = read_csr(minstret);
4545
running[core_id] = 0;
4646
}
4747

@@ -55,7 +55,6 @@ uint32_t getCycles() {
5555
}
5656

5757
uint32_t getInstr(void) {
58-
// return read_csr(minstret);
5958
uint32_t const core_id = snrt_global_core_idx();
6059

6160
if (running[core_id]) {

0 commit comments

Comments
 (0)