Merge pull request #19589 from hrydgard/refactor-execution

Refactor execution: No longer freeze the "EmuThread" when paused in the debugger
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2024-11-05 13:10:06 +01:00
commit 2daca0fedf
12 files changed
+99 -100

No files matched your search

+4 -2
View File
@@ -120,6 +120,9 @@ static volatile bool pspIsIniting = false;
static volatile bool pspIsQuitting = false;
static volatile bool pspIsRebooting = false;
// This is called on EmuThread before RunLoop.
void Core_ProcessStepping(MIPSDebugInterface *cpu);
void ResetUIState() {
globalUIState = UISTATE_MENU;
}
@@ -388,7 +391,6 @@ void Core_UpdateState(CoreState newState) {
if ((coreState == CORE_RUNNING || coreState == CORE_NEXTFRAME) && newState != CORE_RUNNING)
coreStatePending = true;
coreState = newState;
Core_UpdateSingleStep();
}
void Core_UpdateDebugStats(bool collectStats) {
@@ -633,7 +635,7 @@ void PSP_RunLoopUntil(u64 globalticks) {
if (coreState == CORE_POWERDOWN || coreState == CORE_BOOT_ERROR || coreState == CORE_RUNTIME_ERROR) {
return;
} else if (coreState == CORE_STEPPING) {
Core_ProcessStepping();
Core_ProcessStepping(currentDebugMIPS);
return;
}