about summary refs log tree commit diff stats
path: root/wine/wow64/wowbox64.c
diff options
context:
space:
mode:
Diffstat (limited to 'wine/wow64/wowbox64.c')
-rw-r--r--wine/wow64/wowbox64.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/wine/wow64/wowbox64.c b/wine/wow64/wowbox64.c
index 02b25c05..770af6bf 100644
--- a/wine/wow64/wowbox64.c
+++ b/wine/wow64/wowbox64.c
@@ -24,7 +24,7 @@
 #include "rbtree.h"
 #include "wine/compiler.h"
 #include "wine/debug.h"
-#include "core_arch.h"
+#include "hostext.h"
 
 uintptr_t box64_pagesize = 4096;
 
@@ -226,6 +226,14 @@ NTSTATUS WINAPI BTCpuProcessInit(void)
     LoadEnvVariables();
     InitializeEnvFiles();
 
+    if (!BOX64ENV(nobanner)) PrintBox64Version(1);
+    if (DetectHostCpuFeatures())
+        PrintHostCpuFeatures();
+    else {
+        printf_log(LOG_INFO, "Minimum CPU requirements not met, disabling DynaRec\n");
+        SET_BOX64ENV(dynarec, 0);
+    }
+
     TCHAR filename[MAX_PATH];
     if (GetModuleFileNameA(NULL, filename, MAX_PATH)) {
         char* shortname = strrchr(filename, '\\');
@@ -235,7 +243,6 @@ NTSTATUS WINAPI BTCpuProcessInit(void)
         }
     }
 
-    if (!BOX64ENV(nobanner)) PrintBox64Version(1);
     PrintEnvVariables(&box64env, LOG_INFO);
 
     memset(bopcode, 0xc3, sizeof(bopcode));