]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
riscv: features: add support for detecting V/Zbc via hwprobe
authorIcenowy Zheng <uwu@icenowy.me>
Wed, 28 Jan 2026 08:13:56 +0000 (16:13 +0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 1 Feb 2026 12:06:43 +0000 (13:06 +0100)
commitc699fa666a2eb8598acd24002d1f720c8d4633f4
tree7cff4fe689863da89a98c87b4107aa68c314a490
parenta9ca4467b28387f75c33557b7e52fe9ade883706
riscv: features: add support for detecting V/Zbc via hwprobe

Adding support for riscv_hwprobe and detecting V/Zbc via it.

The needed macros should be in Linux 6.12 UAPI headers, which are
shipped by Debian Trixie.

Tested via qemu-user that the Zbc codepath is examined by adding some
code there.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
arch/riscv/riscv_features.c