RISC-V: Add Svukte 1.0 extension support
Binutils now supports the RISC-V Svukte 1.0 extension for address-independent fault latency.
This patch adds support for the RISC-V Svukte 1.0 extension, which is used for address-independent fault latency. The extension is registered with version 1.0, implies Zicsr, and rejects RV32 as it requires Sv39. Tests for RV64 architecture attribute, RV32 rejection, and -march help have been included.
- proposer
Proposes adding support for the RISC-V Svukte 1.0 extension, detailing its implications and requirements.
“Add the Svukte extension for address-independent fault latency [1]. Register version 1.0, imply Zicsr and reject RV32, since the extension requires Sv39. Test the RV64 architecture attribute, RV32 rejection and -march help.”
- maintainer
Merged the patch, indicating successful integration.
“pushed :)”
Technical Tradeoffs
- Adds support for a new RISC-V extension, increasing compatibility with evolving RISC-V standards.
- Restricts the extension to RV64, as per its requirements, ensuring correct usage.
In Details
This change modifies binutils' BFD and GAS components to recognize and correctly process the RISC-V Svukte extension. Svukte, related to virtual memory and fault handling, requires Sv39 and is thus restricted to RV64. The changes involve updating internal tables and adding specific checks for RV32.
- Svukte
- A RISC-V extension related to address-independent fault latency.
- Zicsr
- A RISC-V extension that provides access to Control and Status Registers (CSRs).
- RV32
- The 32-bit version of the RISC-V Instruction Set Architecture.
- RV64
- The 64-bit version of the RISC-V Instruction Set Architecture.
- Sv39
- A RISC-V virtual memory architecture standard, defining page table sizes and address translation.
- BFD
- Binary File Descriptor library, a cross-target binary file format manipulation library used by binutils.
- GAS
- The GNU Assembler, part of the binutils package.