]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Add Smrnmi extension csrs.
authorJiawei <jiawei@iscas.ac.cn>
Tue, 24 Sep 2024 11:16:25 +0000 (19:16 +0800)
committerNelson Chu <nelson@rivosinc.com>
Wed, 25 Sep 2024 01:28:27 +0000 (09:28 +0800)
commitf0bdf8c1691c9509eaebab323754e0530d4ff5d7
treec14d68a626b3208a5c71e4ab122dd44c18e81686
parent85536552c12e0225c70d93383eb0368bb3757e2e
RISC-V: Add Smrnmi extension csrs.

This patch support Smrnmi extension[1],
The csrs address can be find in[2].

[1] https://github.com/riscv/riscv-isa-manual/commit/35eb3948bf0b87c83fab5a7238bd68b6211faf62
[2] https://github.com/riscv/riscv-isa-manual/blob/smrnmi-1.0/src/priv-csrs.adoc

bfd/ChangeLog:

* elfxx-riscv.c: New extension.

gas/ChangeLog:

* NEWS: Add Smrnmi extension support.
* config/tc-riscv.c (enum riscv_csr_class): New extension class.
(riscv_csr_address): Ditto.
* testsuite/gas/riscv/csr-version-1p10.d: New csrs.
* testsuite/gas/riscv/csr-version-1p10.l: Ditto.
* testsuite/gas/riscv/csr-version-1p11.d: Ditto.
* testsuite/gas/riscv/csr-version-1p11.l: Ditto.
* testsuite/gas/riscv/csr-version-1p12.d: Ditto.
* testsuite/gas/riscv/csr-version-1p12.l: Ditto.
* testsuite/gas/riscv/csr.s:  Ditto.
* testsuite/gas/riscv/march-help.l: New extension.

include/ChangeLog:

* opcode/riscv-opc.h (CSR_MNSCRATCH): New csr.
(CSR_MNEPC): Ditto.
(CSR_MNCAUSE): Ditto.
(CSR_MNSTATUS): Ditto.
(DECLARE_CSR): New csr declarations.
12 files changed:
bfd/elfxx-riscv.c
gas/NEWS
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/csr-version-1p10.d
gas/testsuite/gas/riscv/csr-version-1p10.l
gas/testsuite/gas/riscv/csr-version-1p11.d
gas/testsuite/gas/riscv/csr-version-1p11.l
gas/testsuite/gas/riscv/csr-version-1p12.d
gas/testsuite/gas/riscv/csr-version-1p12.l
gas/testsuite/gas/riscv/csr.s
gas/testsuite/gas/riscv/march-help.l
include/opcode/riscv-opc.h