Merge pull request #5451 from Sonicadvance1/146

arm64ec: Fixes crash in many games with SDL+Dualsense
This commit is contained in:
Ryan Houdek authored and GitHub committed 2026-04-30 14:16:06 -07:00
commit feae76fc4f
1 file changed
+1 -1
+1 -1
View File
@@ -677,7 +677,7 @@ bool ResetToConsistentStateImpl(const ThreadCPUArea CPUArea, EXCEPTION_RECORD* E
// A suspend interrupt can occur in ExitFunctionEC before InSimulation is unset and set SuspendDoorbell. If this
// occurs then it is still our duty to cooperatively suspend with an appropriate context. To support this, after
// unsetting InSimulation a brk #0xCAFE instruction will be raised that we can handle here.
NativeContext->Pc = reinterpret_cast<uintptr_t>(ExitFunctionSuspendResumePoint); // Jump to the suspend resume point.
NativeContext->Pc = reinterpret_cast<uintptr_t>(&ExitFunctionSuspendResumePoint); // Jump to the suspend resume point.
*CPUArea.Area->SuspendDoorbell = 0;
return true;
}