mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
Fix for previous commit
This commit is contained in:
@@ -209,12 +209,7 @@ struct features* get_features_info(void) {
|
|||||||
#endif // ifdef __linux__
|
#endif // ifdef __linux__
|
||||||
|
|
||||||
if (feat->SVE || feat->SVE2) {
|
if (feat->SVE || feat->SVE2) {
|
||||||
#ifdef __ARM_FEATURE_SVE
|
|
||||||
feat->cntb = sve_cntb();
|
feat->cntb = sve_cntb();
|
||||||
#else
|
|
||||||
printWarn("Hardware supports SVE, but not the compiler");
|
|
||||||
feat->cntb = 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return feat;
|
return feat;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ uint64_t sve_cntb(void) {
|
|||||||
printf("cntb=%ld\n", x0);
|
printf("cntb=%ld\n", x0);
|
||||||
return x0;
|
return x0;
|
||||||
#else
|
#else
|
||||||
printBug("sve_cntb: SVE not enabled by the compiler");
|
printWarn("sve_cntb: SVE not enabled by the compiler");
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user