You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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
497
510
#[cfg(target_pointer_width = "64")]
498
511
{
499
512
let hwcap2 = os::getauxval(ffi::AT_HWCAP2);
500
-
if hwcap2 &HWCAP2_LRCPC3 != 0{
501
-
info.set(CpuInfoFlag::rcpc3);
502
-
}
503
-
if hwcap2 &HWCAP2_LSE128 != 0{
504
-
info.set(CpuInfoFlag::lse128);
505
-
}
513
+
check!(hwcap2, rcpc3,HWCAP2_LRCPC3);
514
+
check!(hwcap2, lse128,HWCAP2_LSE128);
506
515
}
507
516
}
508
517
}
@@ -808,7 +817,7 @@ mod tests {
808
817
letmut digits = release.split('.');
809
818
let major = digits.next().unwrap().parse::<u32>().unwrap();
810
819
let minor = digits.next().unwrap().parse::<u32>().unwrap();
811
-
// TODO: qemu-user bug?
820
+
// TODO: qemu-user bug (fails even on kernel >= 6.4) (as of 9.2)
812
821
if(major, minor) < (6,4) || cfg!(qemu){
813
822
std::eprintln!("kernel version: {}.{} (no pr_get_auxv)", major, minor);
0 commit comments