Skip to content

Commit

Permalink
report_benchmark.py: Detecting "mcycle" without CSR pseudo-code
Browse files Browse the repository at this point in the history
Before only:          csrr a2, mcycle
After adding format : csrrs a2, mcycle, zero

Signed-off-by: ajalali <[email protected]>
  • Loading branch information
AyoubJalali committed Jan 26, 2024
1 parent fa101fa commit 2fd1bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci/scripts/report_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

stopwatch = []
for index, line in enumerate(log):
if line.split()[-1] == 'mcycle':
if line.split()[-1] == 'mcycle' or line.split()[-2] == 'mcycle,':
stopwatch.append(int(log[index + 1].split()[-1], 16))
# There might be > 2 matches, we use the two at the center
N = len(stopwatch)
Expand Down

0 comments on commit 2fd1bbf

Please sign in to comment.