about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-11-11 18:08:19 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-11-11 18:08:19 +0100
commit987a66309445dc720a551dade7f52beda28af0c5 (patch)
tree81a369a3b37db1eaf4e977dd97f9d0e79d8ef8a1 /src/main.c
parent107dbd56459c39334f9b0d3611c04d561571737e (diff)
downloadbox64-987a66309445dc720a551dade7f52beda28af0c5.tar.gz
box64-987a66309445dc720a551dade7f52beda28af0c5.zip
Improved cpu cores detection and reporting
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a8f3eb9f..12c57ee5 100755
--- a/src/main.c
+++ b/src/main.c
@@ -163,6 +163,7 @@ void my_child_fork()
 }
 
 #ifdef DYNAREC
+int getNCpu();
 void GatherDynarecExtensions()
 {
     if(box64_dynarec==0)    // no need to check if no dynarec
@@ -304,7 +305,9 @@ HWCAP2_ECV
         printf_log(LOG_INFO, " PMULL");
     if(arm64_atomics)
         printf_log(LOG_INFO, " ATOMICS");
-    printf_log(LOG_INFO, " PageSize:%d\n", box64_pagesize);
+    printf_log(LOG_INFO, " PageSize:%d", box64_pagesize);
+    int ncpu = getNCpu();
+    printf_log(LOG_INFO, " Cores:%d\n", ncpu);
 #elif defined(LA464)
     printf_log(LOG_INFO, "Dynarec for LoongArch");
     printf_log(LOG_INFO, " PageSize:%d\n", box64_pagesize);