From 2b5c25ef17718bb0e324ea2febd5b76b829c309b Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 6 Mar 2023 14:11:28 +0100 Subject: Change branding of Cpu to refect Box64 and the cpu it's running on --- src/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main.c') 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 -- cgit 1.4.1