MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / BTCpuSimulateImpl

Function BTCpuSimulateImpl

Source/Windows/WOW64/Module.cpp:770–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770extern "C" void BTCpuSimulateImpl(CONTEXT* entry_context) {
771 auto TLS = GetTLS();
772 TLS.EntryContext() = entry_context;
773 TLS.CachedCallRetSp() = TLS.ThreadState()->CurrentFrame->State.callret_sp;
774
775 Context::LockJITContext();
776 CTX->ExecuteThread(TLS.ThreadState());
777 Context::UnlockJITContext();
778}
779
780NTSTATUS BTCpuSuspendLocalThread(HANDLE Thread, ULONG* Count) {
781 if (!FEX::Windows::ValidateHandleAccess(Thread, THREAD_SUSPEND_RESUME)) {

Callers

nothing calls this directly

Calls 4

GetTLSFunction · 0.85
LockJITContextFunction · 0.85
UnlockJITContextFunction · 0.85
ExecuteThreadMethod · 0.80

Tested by

no test coverage detected