Skip to content

Commit

Permalink
Merge branch 'main' of github.com:tum-ei-eda/mlonmcu into main
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Nov 7, 2023
2 parents 7691a41 + aec7734 commit 579a243
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mlonmcu/target/riscv/spike.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ def get_metrics(self, elf, directory, *args, handle_exit=None):
cycles = self.parse_stdout(out)

metrics = Metrics()
metrics.add("Cycles", cycles)
metrics.add("MIPS", (cycles / diff) / 1e6)
if cycles is not None and cycles > 0:
metrics.add("Cycles", cycles)
metrics.add("MIPS", (cycles / diff) / 1e6)

return metrics, out, []

Expand Down

0 comments on commit 579a243

Please sign in to comment.