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:
parent
ceaeba1760
commit
2d2390ea39
1 changed files with 0 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue