about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect
diff options
context:
space:
mode:
authorTsukasa OI <floss_rust@irq.a4lg.com>2025-04-16 13:43:17 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2025-04-16 18:30:32 +0000
commit2d2390ea398ab314e3d67a3fdfd627afb5ac33bc (patch)
tree41217d5448786ffc94a323480ebbb12c7c8a85b4 /library/stdarch/crates/std_detect
parentceaeba176072605282377c0aef2059383832bd64 (diff)
downloadrust-2d2390ea398ab314e3d67a3fdfd627afb5ac33bc.tar.gz
rust-2d2390ea398ab314e3d67a3fdfd627afb5ac33bc.zip
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.
Diffstat (limited to 'library/stdarch/crates/std_detect')
-rw-r--r--library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs3
1 files changed, 0 insertions, 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 ad4fa956b16..045f03b275b 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)
 }