mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v1.06][ARM] Check if HWCAP2_SVE2 is defined before using it (fixes #270)
This commit is contained in:
@@ -176,7 +176,9 @@ struct features* get_features_info(void) {
|
|||||||
printWarn("Unable to retrieve AT_HWCAP2 using getauxval");
|
printWarn("Unable to retrieve AT_HWCAP2 using getauxval");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
feat->SVE2 = hwcaps & HWCAP2_SVE2;
|
#ifdef HWCAP2_SVE2
|
||||||
|
feat->SVE2 = hwcaps & HWCAP2_SVE2;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user