Skip to content

Commit 203faee

Browse files
committed
RISC-V: tidying: Make auxvec-based enablement a block
Because this function will be no longer auxvec-only, this commit adds a comment to mark auxvec-based part. It *does not* add a comment to "base ISA" part because it may also use `riscv_hwprobe`-based results.
1 parent 12bc94b commit 203faee

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
1919
}
2020
};
2121

22+
// Use auxiliary vector to enable single-letter ISA extensions and Zicsr.
2223
// The values are part of the platform-specific [asm/hwcap.h][hwcap]
2324
//
2425
// [hwcap]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwcap.h?h=v6.14

0 commit comments

Comments
 (0)