about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-03-06 14:11:28 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-03-06 14:11:28 +0100
commit2b5c25ef17718bb0e324ea2febd5b76b829c309b (patch)
tree808c3c4aed7dbc061b32b4e89639e2557743be8c /src/main.c
parentda34156267c483c3621e447ba78842aa37694751 (diff)
downloadbox64-2b5c25ef17718bb0e324ea2febd5b76b829c309b.tar.gz
box64-2b5c25ef17718bb0e324ea2febd5b76b829c309b.zip
Change branding of Cpu to refect Box64 and the cpu it's running on
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 20e5bd35..21c8ed6a 100755
--- a/src/main.c
+++ b/src/main.c
@@ -204,8 +204,9 @@ void my_child_fork()
     }
 }
 
-#ifdef DYNAREC
+const char* getCpuName();
 int getNCpu();
+#ifdef DYNAREC
 void GatherDynarecExtensions()
 {
     if(box64_dynarec==0)    // no need to check if no dynarec
@@ -347,9 +348,7 @@ HWCAP2_ECV
         printf_log(LOG_INFO, " PMULL");
     if(arm64_atomics)
         printf_log(LOG_INFO, " ATOMICS");
-    printf_log(LOG_INFO, " PageSize:%zd", box64_pagesize);
-    int ncpu = getNCpu();
-    printf_log(LOG_INFO, " Cores:%d\n", ncpu);
+    printf_log(LOG_INFO, " PageSize:%zd\n", box64_pagesize);
 #elif defined(LA464)
     printf_log(LOG_INFO, "Dynarec for LoongArch");
     printf_log(LOG_INFO, " PageSize:%zd\n", box64_pagesize);
@@ -782,6 +781,9 @@ void LoadLogEnv()
 #ifdef DYNAREC
     GatherDynarecExtensions();
 #endif
+    int ncpu = getNCpu();
+    const char* cpuname = getCpuName();
+    printf_log(LOG_INFO, "Running on %s with %d Cores\n", cpuname, ncpu);
 }
 
 EXPORTDYN