| 768 | } |
| 769 | |
| 770 | extern "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 | |
| 780 | NTSTATUS BTCpuSuspendLocalThread(HANDLE Thread, ULONG* Count) { |
| 781 | if (!FEX::Windows::ValidateHandleAccess(Thread, THREAD_SUSPEND_RESUME)) { |
nothing calls this directly
no test coverage detected