mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
Fix check is thread current in GetThreadContext
Misplaced break made it only check for the first core.
This commit is contained in:
parent
aa40084c24
commit
0b3d12be40
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue