Skip to content

Commit ff4b7e1

Browse files
a4lgAmanieu
authored andcommitted
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.
1 parent 4666c73 commit ff4b7e1

File tree

1 file changed

+0
-3
lines changed
  • crates/std_detect/src/detect/os/linux

1 file changed

+0
-3
lines changed

crates/std_detect/src/detect/os/linux/riscv.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,6 @@ pub(crate) fn detect_features() -> cache::Initializer {
310310
enable_feature(Feature::rv64i, has_i);
311311
#[cfg(target_arch = "riscv32")]
312312
enable_feature(Feature::rv32i, has_i);
313-
// FIXME: e is not exposed in any of asm/hwcap.h, uapi/asm/hwcap.h, uapi/asm/hwprobe.h
314-
#[cfg(target_arch = "riscv32")]
315-
enable_feature(Feature::rv32e, bit::test(auxv.hwcap, (b'e' - b'a').into()));
316313

317314
imply_features(value)
318315
}

0 commit comments

Comments
 (0)