about summary refs log tree commit diff stats
path: root/src/core.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-06-08 16:41:51 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-06-08 16:41:51 +0200
commit873be3cf879e3635a996bcdc34b3e3a6c15969a0 (patch)
tree6f75051a27b56cb9ecbf1a22e0f5042b10177db3 /src/core.c
parent685afa230291d64f350afbfdfa8fc82536d99f82 (diff)
downloadbox64-873be3cf879e3635a996bcdc34b3e3a6c15969a0.tar.gz
box64-873be3cf879e3635a996bcdc34b3e3a6c15969a0.zip
[RCFILE] Fixed MAXCPU so it works for wine apps too
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 5e164c7a..4404f6bf 100644
--- a/src/core.c
+++ b/src/core.c
@@ -219,7 +219,7 @@ void my_child_fork()
 }
 
 const char* getCpuName();
-int getNCpu();
+int getNCpuUnmasked();
 
 #ifdef DYNAREC
 void GatherDynarecExtensions()
@@ -445,7 +445,7 @@ static void displayMiscInfo()
 #endif
 
     // grab ncpu and cpu name
-    int ncpu = getNCpu();
+    int ncpu = getNCpuUnmasked();
     const char* cpuname = getCpuName();
 
     printf_log(LOG_INFO, "Running on %s with %d core%s, pagesize: %zd\n", cpuname, ncpu, ncpu > 1 ? "s" : "", box64_pagesize);