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:
Henrik RydgårdandClaude Opus 5 committed 2026-08-18 10:59:08 +02:00
1 parent 665cd9808a
commit 434f1b4e13
3 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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();