Skip to content

Commit

Permalink
Fix #121
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Aug 5, 2024
1 parent 0784875 commit c0b5ab9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/naxriscv/misc/PerformanceCounterPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class PerformanceCounterPlugin(var additionalCounterCount : Int,

if(priv.implementSupervisor) csr.allowCsr(CSR.SCOUNTEREN)
csr.allowCsr(CSR.MCOUNTEREN)
csr.allowCsr(CsrListFilter((3 to 31).flatMap(e => List(e + 0xB00, e + 0x320))))
if(withHigh) csr.allowCsr(CsrListFilter((3 to 31).flatMap(e => List(e + 0xB80))))
csr.allowCsr(CsrListFilter((3 to 31).flatMap(e => List(e + 0xB00, e + 0x320) ++ withHigh.option(e + 0xB80))))

val commitMask = getService[CommitService].onCommit().mask
val commitCount = CountOne(commitMask)
Expand Down

0 comments on commit c0b5ab9

Please sign in to comment.