[binutils-gdb] RISC-V: Support Svrsw60t59b extension.

Jeff Law via Binutils-cvs <[email protected]> Mon, 22 Jun 2026 18:12:11 +0000 (GMT)
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b509522e7c59ab3ed242f17b3ec819e7be5f880f

commit b509522e7c59ab3ed242f17b3ec819e7be5f880f
Author: Jiawei <[email protected]>
Date:   Mon Jun 22 12:11:45 2026 -0600

    RISC-V: Support Svrsw60t59b extension.
    
    This patch adds RISC-V Svrsw60t59b extension minimal support.
    
    https://github.com/riscv/riscv-isa-manual/blob/f30292bb486d735e186f06f705fcd7beff1e3e97/src/supervisor.adoc#L2550
    
    bfd/ChangeLog:
    
            * elfxx-riscv.c: New ext.
    
    gas/ChangeLog:
    
            * NEWS: New ext.
            * testsuite/gas/riscv/march-help.l: Ditto.

Diff:
---
 bfd/elfxx-riscv.c                    | 1 +
 gas/NEWS                             | 2 +-
 gas/testsuite/gas/riscv/march-help.l | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index bb5f52c2a08..6bb5e32c8a0 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -1600,6 +1600,7 @@ static const struct riscv_supported_ext riscv_supported_std_s_ext[] =
   {"svinval",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"svnapot",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"svpbmt",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
+  {"svrsw60t59b",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"svvptc",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"ssqosid",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"ssnpm",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
diff --git a/gas/NEWS b/gas/NEWS
index 9cde8cf0fdd..cace494e8ce 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -6,7 +6,7 @@
   and will be removed in a future release.
 
 * Add support for RISC-V standard extensions:
-  zalasr v1.0
+  zalasr v1.0, svrsw60t59b v1.0.
 
 * Add support for RISC-V vendor extensions:
   SpacemiT: xsmtvdot v1.0, xsmtvdotii v1.0.
diff --git a/gas/testsuite/gas/riscv/march-help.l b/gas/testsuite/gas/riscv/march-help.l
index 2f3dcbfb0e8..6fafe1849c5 100644
--- a/gas/testsuite/gas/riscv/march-help.l
+++ b/gas/testsuite/gas/riscv/march-help.l
@@ -148,6 +148,7 @@ All available -march extensions for RISC-V:
 	svinval                                 1.0
 	svnapot                                 1.0
 	svpbmt                                  1.0
+	svrsw60t59b                             1.0
 	svvptc                                  1.0
 	ssqosid                                 1.0
 	ssnpm                                   1.0