From d2bda37e5f3cf9c9f03ffc8793feac53c633cc65 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Thu, 8 Aug 2024 10:00:38 +0200 Subject: [PATCH] Fix for previous commit --- src/arm/midr.c | 7 +------ src/arm/sve.c | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/arm/midr.c b/src/arm/midr.c index 5874e46..a04f664 100644 --- a/src/arm/midr.c +++ b/src/arm/midr.c @@ -209,12 +209,7 @@ struct features* get_features_info(void) { #endif // ifdef __linux__ if (feat->SVE || feat->SVE2) { - #ifdef __ARM_FEATURE_SVE - feat->cntb = sve_cntb(); - #else - printWarn("Hardware supports SVE, but not the compiler"); - feat->cntb = 0; - #endif + feat->cntb = sve_cntb(); } return feat; diff --git a/src/arm/sve.c b/src/arm/sve.c index cb8217f..8443076 100644 --- a/src/arm/sve.c +++ b/src/arm/sve.c @@ -10,7 +10,7 @@ uint64_t sve_cntb(void) { printf("cntb=%ld\n", x0); return x0; #else - printBug("sve_cntb: SVE not enabled by the compiler"); + printWarn("sve_cntb: SVE not enabled by the compiler"); return 0; #endif }