diff options
| author | Valeri <v19930312@gmail.com> | 2021-08-19 16:46:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-19 16:46:30 +0300 |
| commit | 190e12a07208444f4622f2aeb915600b36780ea8 (patch) | |
| tree | c5e068b9484366c66ea02ee5297d3ab2a8ad0717 /src/core/hle/kernel/svc.cpp | |
| parent | 7a90ad5238bde5c677e9a1b328b4570f3c12621f (diff) | |
Fix check is thread current in GetThreadContext
Misplaced break made it only check for the first core.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index a90b291daf..890c52198f 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -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. |
