[REVIEW,ONLY,0/1] UNRATIFIED RISC-V: Add 'Smclic' extension and its CSRs

Message ID cover.1669684774.git.research_trasio@irq.a4lg.com
Headers
Series UNRATIFIED RISC-V: Add 'Smclic' extension and its CSRs |

Message

Tsukasa OI Nov. 29, 2022, 1:19 a.m. UTC
  *** WAIT FOR SPECIFICATION FREEZE ***
This is an implementation for unratified and not frozen RISC-V extension
and not intended to be merged for now.
The only intent to submit this patchset is to test new instructions for
your (possibly virtual) environment and early review for fast adoption
after ratification.


This patchset adds following unratified extension to GNU Binutils:

-   'Smclic' (RISC-V Core-Local Interrupt Controller; CLIC)
    version 0.9 (may change on ratification)

which adds 18 CSRs.

This extension is a software side of Core-Local Interrupt Controller (CLIC)
which provides lower latency local interrupts.


This is based on the specification document, version 0.9-draft:
<https://github.com/riscv/riscv-fast-interrupt/blob/e601b94bf43af0e9842b20134814404e488511e3/clic.pdf>


Although that 18 CSRs are assigned with actual numbers (this is why I'm not
attaching "CSR instantiation" script in this patchset), it may be changed
before ratification.  Be careful.




Tsukasa OI (1):
  UNRATIFIED RISC-V: Add 'Smclic' extension and its CSRs

 bfd/elfxx-riscv.c                           |  2 ++
 gas/config/tc-riscv.c                       |  4 +++
 gas/testsuite/gas/riscv/csr-dw-regnums.d    | 18 ++++++++++
 gas/testsuite/gas/riscv/csr-dw-regnums.s    | 19 ++++++++++
 gas/testsuite/gas/riscv/csr-version-1p10.d  | 36 +++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p10.l  | 39 +++++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p11.d  | 36 +++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p11.l  | 39 +++++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p12.d  | 36 +++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p12.l  | 39 +++++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p9p1.d | 36 +++++++++++++++++++
 gas/testsuite/gas/riscv/csr-version-1p9p1.l | 39 +++++++++++++++++++++
 gas/testsuite/gas/riscv/csr.s               | 20 +++++++++++
 include/opcode/riscv-opc.h                  | 38 ++++++++++++++++++++
 14 files changed, 401 insertions(+)


base-commit: cb44f89ce977b1ab2d4063f2487950bddfb75bc7