d-iii-s / msim

Light-weight MIPS R4000 and RISC-V system simulator
https://d3s.mff.cuni.cz/software/msim/
GNU General Public License v2.0
5 stars 5 forks source link

[Issue #38] RISC-V csrd rework #61

Closed HanyzPAPU closed 6 months ago

HanyzPAPU commented 9 months ago

I've reworked the csrd command to dump only selected CSRs.

I've also implemented a new subcommand feature for csrd - you can specify a subcommand instead of the CSR name/number which prints out a subset of CSRs.

The implemented subcommands are:

The csrd command without any parameter now dumps the following CSRs:

A discussion about the included CSRs is welcome, I've chosen them arbitrarily by removing the counters, configuration and debug CSRs.

Note that this PR follows PR https://github.com/d-iii-s/msim/pull/60.

vhotspur commented 6 months ago

Merging, I think the selection is OK for now (we can fine tune it based on feedback from next semester labs).