Add thread debugger

This commit is contained in:
wheremyfoodat
2025-07-03 16:58:56 +03:00
parent 228068901b
commit 9932e58bf0
10 changed files with 172 additions and 14 deletions

View File

@@ -272,6 +272,11 @@ bool Emulator::loadROM(const std::filesystem::path& path) {
romType = ROMType::None;
}
if (success) {
// Update the main thread entrypoint and SP so that the thread debugger can display them.
kernel.setMainThreadEntrypointAndSP(cpu.getReg(15), cpu.getReg(13));
}
resume(); // Start the emulator
return success;
}