]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Add workaround for missing riscv_hwprobe syscall (258)
authorMark Wielaard <mark@klomp.org>
Fri, 9 May 2025 11:46:44 +0000 (13:46 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 9 May 2025 11:46:44 +0000 (13:46 +0200)
commit5efdbbd321e6816ab2ae436d38c20bdcc72b4c17
tree9445d6da1e059e9c6d69f465b71c573200535e12
parentff6e14ab798af0628c54c6a704c1cb8844a79419
Add workaround for missing riscv_hwprobe syscall (258)

On riscv newer glibc (2.41) will probe instruction support using the
riscv_hwprobe syscall. Since Valgrind currently doesn't have a wrapper
for riscv_hwprobe that causes a Warning. Since the RISC-V Hardware
Probing Interface is non-trivial and we don't really implement
extended riscv instructions anyway work around that by "implementing"
riscv_hwprobe as sys_ni_syscall so it generates an ENOSYS and glibc
will silently fall back to not using any extended instructions.

https://docs.kernel.org/arch/riscv/hwprobe.html

https://bugs.kde.org/show_bug.cgi?id=503253
coregrind/m_syswrap/syswrap-riscv64-linux.c
include/vki/vki-scnums-riscv64-linux.h