mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
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.
This commit is contained in:
committed by
Amanieu d'Antras
parent
ceaeba1760
commit
2d2390ea39
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user