From 3076fb994fd4ae9f0db5ecf7f9e3be5c11380b27 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 8 Sep 2024 07:44:40 +0900 Subject: [PATCH] detect: Mention about HWCAP2 on AArch64 ILP32 Linux --- src/imp/atomic128/detect/auxv.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imp/atomic128/detect/auxv.rs b/src/imp/atomic128/detect/auxv.rs index cd505110..112cb152 100644 --- a/src/imp/atomic128/detect/auxv.rs +++ b/src/imp/atomic128/detect/auxv.rs @@ -265,6 +265,7 @@ mod arch { info.set(CpuInfo::HAS_LSE2); } #[cfg(any(target_os = "linux", target_os = "android"))] + // HWCAP2 is not yet available on ILP32: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/tree/arch/arm64/include/uapi/asm/hwcap.h?h=staging/ilp32-5.1 #[cfg(target_pointer_width = "64")] { let hwcap2 = os::getauxval(ffi::AT_HWCAP2);