]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add Shlcofideleg extension.
authorJiawei <jiawei@iscas.ac.cn>
Tue, 27 May 2025 06:37:03 +0000 (14:37 +0800)
committerJiawei <jiawei@iscas.ac.cn>
Wed, 4 Jun 2025 06:37:53 +0000 (14:37 +0800)
commitf8251b4fce20f030fb133de1cadb06f95f01656e
treec425215edde18ce19be8250717b79a4a641d4b08
parent102b21f9ce7d7a30cdee7c729a152e95c96107ac
RISC-V: Add Shlcofideleg extension.

This patch add the RISC-V Shlcofideleg extension. It supports delegating
LCOFI interrupts(the count-overflow interrupts) to VS-mode.[1]

[1] https://riscv.github.io/riscv-isa-manual/snapshot/privileged

gcc/ChangeLog:

* config/riscv/riscv-ext.def: New extension defs.
* config/riscv/riscv-ext.opt: Ditto.
* doc/riscv-ext.texi: Ditto.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/arch-shlocofideleg.c: New test.

Signed-off-by: Jiawei <jiawei@iscas.ac.cn>
gcc/config/riscv/riscv-ext.def
gcc/config/riscv/riscv-ext.opt
gcc/doc/riscv-ext.texi
gcc/testsuite/gcc.target/riscv/arch-shlocofideleg.c [new file with mode: 0644]