From e22c2a8f3cdd12e40e754d45a8d4cec2cebbaf95 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Mon, 3 May 2021 15:03:09 +0200 Subject: [PATCH] [0.97] Do not count "L4" cache when computing the max cache level. Fixes #43 --- src/x86/cpuid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/x86/cpuid.c b/src/x86/cpuid.c index e2ba364..cc16cb3 100644 --- a/src/x86/cpuid.c +++ b/src/x86/cpuid.c @@ -581,6 +581,7 @@ struct cache* get_cache_info_general(struct cache* cach, uint32_t level) { } else { printWarn("Found unknown unified cache at level %d (size is %d bytes)", cache_level, cache_total_size); + cach->max_cache_level--; } break;