mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-25 18:30:06 +00: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
@ -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) {
|
for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
|
||||||
if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) {
|
if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) {
|
||||||
current = true;
|
current = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the thread is current, retry until it isn't.
|
// If the thread is current, retry until it isn't.
|
||||||
|
Loading…
Reference in New Issue
Block a user