kern: fix check for thread-is-current in KDebugBase::SetThreadContext

This commit is contained in:
Michael Scire 2021-08-19 07:34:08 -07:00
parent aee89db748
commit 81bf8c577a

View file

@ -469,9 +469,9 @@ namespace ams::kern {
for (auto i = 0; i < static_cast<s32>(cpu::NumCores); ++i) {
if (thread == Kernel::GetScheduler(i).GetSchedulerCurrentThread()) {
current = true;
}
break;
}
}
/* If the thread is current, retry until it isn't. */
if (current) {