From 2d2390ea398ab314e3d67a3fdfd627afb5ac33bc Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Wed, 16 Apr 2025 13:43:17 +0000 Subject: [PATCH] std_detect: Remove RV32E support attempt on Linux (RISC-V) Because the current lowest requirements to run the Linux kernel on RISC-V is RV{32,64}IMA (with 32 general purpose registers) plus some features, RV32E (with only 16 GPRs) is not currently supported. Since it's not sure whether current implemented method will work for future Linux versions even if the minimum requirements are lowered, the support for RV32E (to be more specific, an attempt to do that) is removed for now. --- library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs index ad4fa956b16e..045f03b275b9 100644 --- a/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs +++ b/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs @@ -310,9 +310,6 @@ pub(crate) fn detect_features() -> cache::Initializer { enable_feature(Feature::rv64i, has_i); #[cfg(target_arch = "riscv32")] enable_feature(Feature::rv32i, has_i); - // FIXME: e is not exposed in any of asm/hwcap.h, uapi/asm/hwcap.h, uapi/asm/hwprobe.h - #[cfg(target_arch = "riscv32")] - enable_feature(Feature::rv32e, bit::test(auxv.hwcap, (b'e' - b'a').into())); imply_features(value) }