binutils Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
risc-v

Remove RISC-V privileged spec classes and related definitions

Removes obsolete RISC-V privileged spec classes and related CSR definitions.

This commit removes several definitions related to RISC-V privileged specification classes and associated CSRs from various components including BFD, gas, and GDB. The changes reflect the standardization on privileged spec 1.13, making older spec versions and their corresponding CSRs obsolete. The assembler and disassembler are updated to handle this change, no longer recognizing or processing deprecated spec versions or attributes.

In Details

This commit cleans up the RISC-V toolchain support by removing definitions for PRIV_SPEC_CLASS_* and related tables like riscv_priv_specs. Since the RISC-V privileged spec is now fixed at 1.13, these version-specific classes are no longer needed. The changes also update DECLARE_CSR usage and remove version checks in the assembler and disassembler, simplifying the handling of CSRs and attributes.

For Context
CSR
Control and Status Register. Special registers in a processor used to control its operation or report its status.
privileged spec
Refers to the specification defining the privilege levels and control and status registers (CSRs) for the RISC-V architecture. Different versions of this spec may define different sets of CSRs and their behavior.
BFD
Binary File Descriptor library. A library used by binutils to support various object file formats.
gas
The GNU Assembler, part of the binutils package.
RISC-V
An open-standard instruction set architecture (ISA) based on modularity, and designed for scalability.
Filed Under: risc-vcleanupcsr