mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 17:00:52 +02:00
WOW64: Mark the CPU area context as dirty initially
After thread creation, the WOW64 CPU area context needs to be flushed into the FEX state before entering the JIT. Wine explicitly calls BTCpuSetContext to trigger this but Windows doesn't.
This commit is contained in:
1 parent
4c0e6d5779
commit
26a8a2717c
1 file changed
+1
@@ -468,6 +468,7 @@ void BTCpuThreadInit() {
|
||||
FEX::Windows::InitCRTThread();
|
||||
auto* Thread = CTX->CreateThread(0, 0);
|
||||
GetTLS().ThreadState() = Thread;
|
||||
GetTLS().ControlWord().fetch_or(ControlBits::WOW_CPU_AREA_DIRTY, std::memory_order::relaxed);
|
||||
|
||||
std::scoped_lock Lock(ThreadCreationMutex);
|
||||
Threads.emplace(GetCurrentThreadId(), Thread);
|
||||
|
||||
Reference in new issue
Block a user