From 229035329534f3a41ac1c1279e3fc523a0bb3ee8 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 9 Jan 2025 13:12:06 -0800 Subject: [PATCH] Wine: Ensure the profiler is initialized. --- Source/Windows/ARM64EC/Module.cpp | 3 +++ Source/Windows/WOW64/Module.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Source/Windows/ARM64EC/Module.cpp b/Source/Windows/ARM64EC/Module.cpp index 523b5bcae..075cf9e32 100644 --- a/Source/Windows/ARM64EC/Module.cpp +++ b/Source/Windows/ARM64EC/Module.cpp @@ -17,6 +17,7 @@ $end_info$ #include #include #include +#include #include #include #include @@ -533,6 +534,8 @@ NTSTATUS ProcessInit() { // Not applicable to Windows FEXCore::Config::EraseSet(FEXCore::Config::ConfigOption::CONFIG_TSOAUTOMIGRATION, "0"); + FEXCore::Profiler::Init(); + FEXCore::Context::InitializeStaticTables(FEXCore::Context::MODE_64BIT); SignalDelegator = fextl::make_unique(); diff --git a/Source/Windows/WOW64/Module.cpp b/Source/Windows/WOW64/Module.cpp index 9e6cec16d..c2a3ca3cc 100644 --- a/Source/Windows/WOW64/Module.cpp +++ b/Source/Windows/WOW64/Module.cpp @@ -19,6 +19,7 @@ $end_info$ #include #include #include +#include #include #include #include @@ -457,6 +458,8 @@ void BTCpuProcessInit() { // Not applicable to Windows FEXCore::Config::EraseSet(FEXCore::Config::ConfigOption::CONFIG_TSOAUTOMIGRATION, "0"); + FEXCore::Profiler::Init(); + FEXCore::Context::InitializeStaticTables(FEXCore::Context::MODE_32BIT); SignalDelegator = fextl::make_unique();