Skip to content

Commit

Permalink
Wine: Ensure the profiler is initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Jan 9, 2025
1 parent d7fe334 commit aea08f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Windows/ARM64EC/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ desc: Implements the ARM64EC BT module API using FEXCore
#include <FEXCore/Utils/Allocator.h>
#include <FEXCore/Utils/LogManager.h>
#include <FEXCore/Utils/Threads.h>
#include <FEXCore/Utils/Profiler.h>
#include <FEXCore/Utils/EnumOperators.h>
#include <FEXCore/Utils/EnumUtils.h>
#include <FEXCore/Utils/FPState.h>
Expand Down Expand Up @@ -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<FEX::DummyHandlers::DummySignalDelegator>();
Expand Down
3 changes: 3 additions & 0 deletions Source/Windows/WOW64/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ desc: Implements the WOW64 BT module API using FEXCore
#include <FEXCore/Utils/Allocator.h>
#include <FEXCore/Utils/LogManager.h>
#include <FEXCore/Utils/Threads.h>
#include <FEXCore/Utils/Profiler.h>
#include <FEXCore/Utils/EnumOperators.h>
#include <FEXCore/Utils/EnumUtils.h>
#include <FEXCore/Utils/FPState.h>
Expand Down Expand Up @@ -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<FEX::DummyHandlers::DummySignalDelegator>();
Expand Down

0 comments on commit aea08f4

Please sign in to comment.