mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
Give the cpu.runUntilTime deadline its own BreakReason
It reported BreakReason::DebugBreak, the same reason a user hitting pause produces, so a client that asked to run until a point in emulated time couldn't tell its deadline landing from someone stopping the core by hand - the one piece of information the cpu.stepping event exists to convey. Reports "cpu.runUntilTime" now, matching the request that armed it. No client depended on the old string: nothing outside Core.cpp names "cpu.debugbreak", and wsdbg's resume handling keys off the event, not the reason. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZq8ZtJmFY7bkX5FVkr3P9
This commit is contained in:
1 parent
665cd9808a
commit
434f1b4e13
3 files changed
+3
-1
No files matched your search
@@ -262,6 +262,7 @@ const char *BreakReasonToString(BreakReason reason) {
|
||||
case BreakReason::FrameAdvance: return "ui.frameAdvance";
|
||||
case BreakReason::UIPause: return "ui.pause";
|
||||
case BreakReason::HLEDebugBreak: return "hle.step";
|
||||
case BreakReason::RunUntilTime: return "cpu.runUntilTime";
|
||||
default: return "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,6 +73,7 @@ enum class BreakReason {
|
||||
FrameAdvance,
|
||||
UIPause,
|
||||
HLEDebugBreak,
|
||||
RunUntilTime,
|
||||
};
|
||||
const char *BreakReasonToString(BreakReason reason);
|
||||
|
||||
|
||||
+1
-1
@@ -428,7 +428,7 @@ void Advance(MIPSState *mips) {
|
||||
if (breakDeadlineTicks && globalTimer >= breakDeadlineTicks) {
|
||||
breakDeadlineTicks = 0;
|
||||
breakDeadlineUs = 0;
|
||||
Core_Break(BreakReason::DebugBreak, mips->pc);
|
||||
Core_Break(BreakReason::RunUntilTime, mips->pc);
|
||||
}
|
||||
|
||||
ProcessEvents();
|
||||
|
||||
Reference in new issue
Block a user