tactcomplabs / rev

RISC-V SST CPU Component
Other
17 stars 21 forks source link

Overhaul of CSR functionality #327

Closed leekillough closed 3 weeks ago

leekillough commented 3 weeks ago

This makes changes to the CSR implementation to make it more modular and more easily expanded for F***a:

Cc: @tdysart

kpgriesser commented 3 weeks ago

I test using rv32g with and without '_zicntr' and confirmed that without the zicntr extension I received a very helpful message that will save people a lot of time scratching their heads ( thanks)

FATAL: RevCPU[cpu0:fatal:34790000]: Illegal instruction at PC = 0x11e44: Zicntr extension not available

I updated my tests in tests/tracer to use the zicntr extension and everything is passing. I'll push these changes after the PR is merged