mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-11-29 04:21:35 +00:00
[v1.06][ARM] Check if HWCAP2_SVE2 is defined before using it (fixes #270)
This commit is contained in:
1 parent
0507355372
commit
15a803dae5
1 file changed
+3
-1
+3
-1
@@ -176,7 +176,9 @@ struct features* get_features_info(void) {
|
||||
printWarn("Unable to retrieve AT_HWCAP2 using getauxval");
|
||||
}
|
||||
else {
|
||||
feat->SVE2 = hwcaps & HWCAP2_SVE2;
|
||||
#ifdef HWCAP2_SVE2
|
||||
feat->SVE2 = hwcaps & HWCAP2_SVE2;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user