Merge pull request #6884 from v1993/patch-1

Fix check is thread current in GetThreadContext
This commit is contained in:
Morph 2021-08-19 10:39:35 -04:00 committed by GitHub
commit aa74aaf38f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1078,9 +1078,9 @@ static ResultCode GetThreadContext(Core::System& system, VAddr out_context, Hand
for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) {
current = true;
}
break;
}
}
// If the thread is current, retry until it isn't.
if (current) {