aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorValeri <v19930312@gmail.com>2021-08-19 16:46:30 +0300
committerGitHub <noreply@github.com>2021-08-19 16:46:30 +0300
commit190e12a07208444f4622f2aeb915600b36780ea8 (patch)
treec5e068b9484366c66ea02ee5297d3ab2a8ad0717 /src/core/hle/kernel/svc.cpp
parent7a90ad5238bde5c677e9a1b328b4570f3c12621f (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.cpp2
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.