[PATCH v2 0/3] RISC-V: Add CSRs for several supervisor extensions

Tsukasa OI research_trasio@irq.a4lg.com
Tue May 24 09:35:09 GMT 2022


v1:
<https://sourceware.org/pipermail/binutils/2022-February/119858.html>

This patchset adds CSRs for following extensions:

-   Smstateen
-   Sscofpmf
-   Sstc

For consistency with CSR_CLASS_I hypervisor-related CSRs, minimum
privileged specification on hypervisor-related CSRs are 1.12 and non
hypervisor-related CSRs are 1.9.1 (minimum supported; Smstateen and
Sstc) or none (Sscofpmf; which has no hypervisor-related CSRs).

This decision corresponds Option A on:
<https://sourceware.org/pipermail/binutils/2022-February/119874.html>

I have been busy since submitting v1 and I completely forgot to submit
v2 (which is already completed on February).

Thanks,
Tsukasa




Tsukasa OI (3):
  RISC-V: Add 'Smstateen' extension and its CSRs
  RISC-V: Add 'Sscofpmf' extension with its CSRs
  RISC-V: Add 'Sstc' extension and its CSRs

 bfd/elfxx-riscv.c                           |   3 +
 gas/config/tc-riscv.c                       |  26 +++
 gas/testsuite/gas/riscv/csr-dw-regnums.d    |  54 +++++
 gas/testsuite/gas/riscv/csr-dw-regnums.s    |  57 ++++++
 gas/testsuite/gas/riscv/csr-version-1p10.d  | 108 ++++++++++
 gas/testsuite/gas/riscv/csr-version-1p10.l  | 207 ++++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p11.d  | 108 ++++++++++
 gas/testsuite/gas/riscv/csr-version-1p11.l  | 207 ++++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p12.d  | 108 ++++++++++
 gas/testsuite/gas/riscv/csr-version-1p12.l  | 187 ++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p9p1.d | 108 ++++++++++
 gas/testsuite/gas/riscv/csr-version-1p9p1.l | 207 ++++++++++++++++++++
 gas/testsuite/gas/riscv/csr.s               |  60 ++++++
 include/opcode/riscv-opc.h                  | 114 +++++++++++
 14 files changed, 1554 insertions(+)


base-commit: be38442ddacf1fd25c8868d0491ea9e98b0e9ca7
-- 
2.34.1



More information about the Binutils mailing list