Closed 245950258 closed 5 years ago
The toolchain is riscv-gnu-toolchain, not riscv-tools.
You can always use the CSR register number. If you want to use the CSR name, then you need to modify binutils to add assembler/disassembler support for the new name. In binutils, see the file include/opcode/riscv-opc.h and look for example at the CSR_MSTATUS support. You need two lines, one which gives the register number, and one which maps the register number to the name string.
Thank you for helping me.