From 65366abe046b94f51482238b95acdf94ccc19461 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Mon, 19 Sep 2022 11:29:44 +0200 Subject: [PATCH] [v1.02][ARM] Fixed wrong check for Apple CPU --- src/arm/midr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/midr.c b/src/arm/midr.c index 2d8d7bc..f75ea8b 100644 --- a/src/arm/midr.c +++ b/src/arm/midr.c @@ -83,7 +83,7 @@ int64_t get_peak_performance(struct cpuInfo* cpu) { int64_t flops = 0; ptr = cpu; - if(cpu->cpu_vendor == SOC_VENDOR_APPLE) { + if(cpu->soc->soc_vendor == SOC_VENDOR_APPLE) { // Special case for M1/M2 // First we find the E cores, then the P // M1 have 2 (E cores) or 4 (P cores) FMA units