[PATCH] RISC-V: Add Privileged Architecture 1.13 CSRs.
Nelson Chu
nelson@rivosinc.com
Fri May 9 01:33:47 GMT 2025
I usually won't update the files under gas/po when changing the gas/doc/,
and will let Nick and Alan update them for the new release. Otherwise this
patch looks good, thanks.
Nelson
On Wed, May 7, 2025 at 9:52 PM Jiawei <jiawei@iscas.ac.cn> wrote:
> This patch support RISC-V Privileged Architecture 1.13 CSRs 'medelegh' and
> 'hedelegh'. More details between 1.12 and 1.13 see [1].
>
> [1]
> https://github.com/riscv/riscv-isa-manual/blob/main/src/priv-preface.adoc
>
> bfd/ChangeLog:
>
> * cpu-riscv.c: New option.
> * cpu-riscv.h (enum riscv_spec_class): Ditto.
>
> binutils/ChangeLog:
>
> * doc/binutils.texi: New option.
>
> gas/ChangeLog:
>
> * NEWS: Add priv-1.13 support.
> * config/tc-riscv.c: New option.
> * configure: Ditto.
> * configure.ac: Ditto.
> * po/fr.po: Ditto.
> * po/gas.pot: Ditto.
> * po/ro.po: Ditto.
> * po/ru.po: Ditto.
> * po/uk.po: Ditto.
> * testsuite/gas/riscv/csr-version-1p10.d: New CSR.
> * testsuite/gas/riscv/csr-version-1p10.l: New warning.
> * testsuite/gas/riscv/csr-version-1p11.d: New CSR.
> * testsuite/gas/riscv/csr-version-1p11.l: New warning.
> * testsuite/gas/riscv/csr-version-1p12.d: New CSR.
> * testsuite/gas/riscv/csr-version-1p12.l: New warning.
> * testsuite/gas/riscv/csr.s: New CSR.
> * testsuite/gas/riscv/attribute-15.d: New test.
> * testsuite/gas/riscv/attribute-16.d: New test.
> * testsuite/gas/riscv/csr-version-1p13.d: New test.
> * testsuite/gas/riscv/csr-version-1p13.l: New test.
>
> include/ChangeLog:
>
> * opcode/riscv-opc.h (CSR_MEDELEGH): New CSR.
> (CSR_HEDELEGH): Ditto.
> (DECLARE_CSR): Ditto.
>
> ---
> bfd/cpu-riscv.c | 1 +
> bfd/cpu-riscv.h | 1 +
> binutils/doc/binutils.texi | 2 +-
> gas/NEWS | 2 +
> gas/config/tc-riscv.c | 2 +-
> gas/configure | 2 +-
> gas/configure.ac | 2 +-
> gas/po/fr.po | 4 +-
> gas/po/gas.pot | 2 +-
> gas/po/ro.po | 4 +-
> gas/po/ru.po | 4 +-
> gas/po/uk.po | 4 +-
> gas/testsuite/gas/riscv/attribute-15.d | 8 +
> gas/testsuite/gas/riscv/attribute-16.d | 6 +
> gas/testsuite/gas/riscv/csr-version-1p10.d | 4 +
> gas/testsuite/gas/riscv/csr-version-1p10.l | 16 +
> gas/testsuite/gas/riscv/csr-version-1p11.d | 4 +
> gas/testsuite/gas/riscv/csr-version-1p11.l | 16 +
> gas/testsuite/gas/riscv/csr-version-1p12.d | 4 +
> gas/testsuite/gas/riscv/csr-version-1p12.l | 16 +
> gas/testsuite/gas/riscv/csr-version-1p13.d | 941 ++++++++++++
> gas/testsuite/gas/riscv/csr-version-1p13.l | 1495 ++++++++++++++++++++
> gas/testsuite/gas/riscv/csr.s | 4 +-
> include/opcode/riscv-opc.h | 4 +
> 24 files changed, 2534 insertions(+), 14 deletions(-)
> create mode 100644 gas/testsuite/gas/riscv/attribute-15.d
> create mode 100644 gas/testsuite/gas/riscv/attribute-16.d
> create mode 100644 gas/testsuite/gas/riscv/csr-version-1p13.d
> create mode 100644 gas/testsuite/gas/riscv/csr-version-1p13.l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250509/ca32f182/attachment.htm>
More information about the Binutils
mailing list