RISC-V: CSR instruction disassembly: Decode CSR register number into a string when a standardized register is used #6376
Labels
Arch: RISC-V
Issues with the RISC-V architecture plugin
Component: Architecture
Issue needs changes to an architecture plugin
Effort: Trivial
Issue should take < 1 day
Impact: Low
Issue is a papercut or has a good, supported workaround
Currently, CSR instructions are decoded like so:
But there are many CSR register numbers with a defined definition in the RISC-V ISA Manual Volume II: Privileged Architecture. Examples:
I propose instead of the disassembly showing
csrrs zero, 0x300, t0
, it instead showcsrrs zero, mstatus, t0
. Likewise in the higher-level ILs.I can make these changes, but I'm not great at Rust and I need some pointers on how to do it. Providing an example of the aforementioned instruction would suffice and I could then fill in the rest.
Based on recent contributors, I will humbly ask @emesare, @ehntoo for assistance.
The text was updated successfully, but these errors were encountered: