1
0
Fork 0
forked from suyu/suyu

Fix check is thread current in GetThreadContext

Misplaced break made it only check for the first core.
This commit is contained in:
Valeri 2021-08-19 16:46:30 +03:00 committed by GitHub
parent aa40084c24
commit 0b3d12be40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1078,8 +1078,8 @@ 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;
}
break;
}
// If the thread is current, retry until it isn't.