[v1.06][ARM] Check if HWCAP2_SVE2 is defined before using it (fixes #270)

This commit is contained in:
Dr-Noob
2024-08-28 21:26:27 +01:00
parent 0507355372
commit 15a803dae5

View File

@@ -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