binutils Newspaper
NOVEMBER 30, 2026
risc-v — Proposed

RISC-V: Add support for the Shlcofideleg extension

Patch adds support for the RISC-V Shlcofideleg extension to binutils, enabling delegation of counter-overflow interrupts.

This patch adds support for the RISC-V Shlcofideleg extension, version 1.0. This extension allows the delegation of local counter-overflow interrupts to VS-mode. The changes include updates to the BFD library to recognize the extension and its dependency on the ‘H’ extension, as well as modifications to the gas assembler’s testsuite to verify implication and support.

In Details

This patch introduces support for the Shlcofideleg extension to the RISC-V toolchain within binutils. This extension, part of the RISC-V Privileged Specification, enables delegation of performance monitoring counter overflow interrupts to a Virtualization Subsystem (VS) mode. The changes are primarily in bfd/elfxx-riscv.c for ELF recognition and gas/ for assembler support and testing, specifically noting its implication of the 'H' (Hypervisor) extension.

For Context
Shlcofideleg
A RISC-V extension that permits delegation of local counter-overflow interrupts to Virtualization Subsystem (VS) mode.
VS-mode
Virtualization Subsystem mode in RISC-V, related to hypervisor functionalities.
H extension
The RISC-V Hypervisor extension, providing hardware support for virtualization.
BFD
Binary File Descriptor library, a backend for GNU Binutils that provides a common interface to various object file formats.
gas
The GNU Assembler, part of the GNU Binutils package.
Filed Under: binutilsrisc-vextensioninterruptspatch