[PATCH v3 0/4] RISC-V: Add CSRs for several supervisor extensions

Tsukasa OI research_trasio@irq.a4lg.com
Fri Jun 24 02:51:52 GMT 2022


v1:
<https://sourceware.org/pipermail/binutils/2022-February/119858.html>
v2:
<https://sourceware.org/pipermail/binutils/2022-May/120974.html>
CURRENT (GitHub):
<https://github.com/a4lg/binutils-gdb/tree/riscv-s-exts-csrs>

This patchset adds CSRs for following extensions:

-   Smstateen
-   Sscofpmf
-   Sstc

Because 'H' extension and related CSR class is now implemented, we can
now safely and consistently implement hypervisor-related CSR feature
gate masking.

[CHANGES: v2 -> v3]
-   Follow up to now implemented 'H' extension support
-   Add (and refactor) complex CSR feature gate handling (on H and RV32)
-   Make new CSRs independent to privileged architecture
    (as initially suggested by Nelson Chu)

Thanks,
Tsukasa




Tsukasa OI (4):
  RISC-V: Add new CSR feature gate handling (RV32,H)
  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                       |  47 ++++-
 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  | 207 ++++++++++++++++++++
 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, 1591 insertions(+), 4 deletions(-)


base-commit: 54603ee2aeaf248220f0f440c322ff02e98cd403
-- 
2.34.1



More information about the Binutils mailing list