RISC-V: Add support for the Shlcofideleg extension
Adds assembler and linker support for the RISC-V Shlcofideleg extension.
This patch adds support for the RISC-V Shlcofideleg extension to binutils. The Shlcofideleg extension allows delegation of local counter-overflow interrupts to VS-mode and has a dependency on the ‘H’ extension. The changes include recognition and implication testing in the assembler.
- proposer
Proposes adding support for the Shlcofideleg extension, which enables delegation of local counter-overflow interrupts to VS-mode.
“Add Shlcofideleg 1.0, which permits delegation of local counter-overflow interrupts to VS-mode. Record its dependency on H and cover extension recognition and implication in the assembler testsuite. bfd/ChangeLog: * elfxx-riscv.c (riscv_implicit_subsets): Add Shlcofideleg. (riscv_supported_std_s_ext): Ditto. gas/ChangeLog: * NEWS: Mention Shlcofideleg. * tests…”
- reviewer
Acknowledges the patch and confirms it has been pushed to the trunk.
“pushed, thanks :)”
Technical Tradeoffs
- Extends the toolchain's capabilities to support a new RISC-V hardware feature.
- Requires updates to the assembler and linker, along with new test cases.
In Details
This patch integrates support for the shlcofideleg extension into the RISC-V toolchain. This extension, dependent on the 'H' extension, modifies interrupt handling by allowing delegation of local counter-overflow interrupts to VS-mode. The changes affect bfd/elfxx-riscv.c for implicit subset recognition and supported extensions, and gas/ for NEWS updates and testsuite additions.
- Shlcofideleg
- A RISC-V extension that allows delegation of local counter-overflow interrupts to VS-mode. It depends on the 'H' extension.
- VS-mode
- Virtualization mode in RISC-V architecture, enabling hypervisors to manage guest operating systems.
- H extension
- The RISC-V 'H' extension provides basic hardware support for virtualization.
- assembler
- A program that translates assembly language into machine code.
- testsuite
- A collection of tests designed to verify the correctness of a software component or system.