[RISCV] Add CSRs defined in the recently ratified Smstateen extension
authorAlex Bradbury <asb@lowrisc.org>
Fri, 14 Jan 2022 09:15:35 +0000 (09:15 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Sat, 15 Jan 2022 08:35:47 +0000 (08:35 +0000)
commit1ca79823e0562be2a065377dda1474b0dc9c9e4d
tree1d658bd71e0df904eb47e5345358245e014ace43
parentf00a98a0a90e80f9790e6b505f5a5d4d64741690
[RISCV] Add CSRs defined in the recently ratified Smstateen extension

The "RISC-V State Enable Extension" was ratified at the end of at the
end of last year though hasn't yet been integrated in the main
specification documents (see
<https://wiki.riscv.org/display/TECH/Recently+Ratified+Extensions>).

This commit adds the CSRs defined by this extension in
<https://github.com/riscv/riscv-state-enable/releases/download/v0.6.3/Smstateen.pdf>.

Differential Revision: https://reviews.llvm.org/D117310
llvm/lib/Target/RISCV/RISCVSystemOperands.td
llvm/test/MC/RISCV/hypervisor-csr-names.s
llvm/test/MC/RISCV/machine-csr-names.s
llvm/test/MC/RISCV/rv32-hypervisor-csr-names.s
llvm/test/MC/RISCV/rv32-machine-csr-names.s
llvm/test/MC/RISCV/rv32-only-csr-names.s
llvm/test/MC/RISCV/supervisor-csr-names.s