about summary refs log tree commit diff
path: root/tests/codegen-llvm/patchable-function-entry
diff options
context:
space:
mode:
authorTsukasa OI <floss_rust@irq.a4lg.com>2025-04-13 04:35:58 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2025-04-16 00:56:48 +0000
commitd5baf4da917af26c499ef9b09a716958d21cd78d (patch)
treeedb17a52852dfc8e13f74ca51ae4310ff24295a1 /tests/codegen-llvm/patchable-function-entry
parentdb188b33b31f68c4f41eb45b0e23fd6228ed3a84 (diff)
downloadrust-d5baf4da917af26c499ef9b09a716958d21cd78d.tar.gz
rust-d5baf4da917af26c499ef9b09a716958d21cd78d.zip
RISC-V: `riscv_hwprobe`-based feature detection on Linux / Android
This commit implements `riscv_hwprobe`-based feature detection as available
on newer versions of the Linux kernel.  It also queries whether the vector
extensions are enabled using `prctl` but this is not supported on QEMU's
userland emulator (as of version 9.2.3) and use the auxiliary vector
as a fallback.

Currently, all extensions discoverable from the Linux kernel version 6.14
and related extension groups (except "Supm", which reports the existence of
`prctl`-based pointer masking control and too OS-dependent) are implemented.

Co-Authored-By: Taiki Endo <te316e89@gmail.com>
Diffstat (limited to 'tests/codegen-llvm/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions