summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-08-19 16:39:35 +0200
committerGitHub <noreply@github.com>2021-08-19 16:39:35 +0200
commitaa74aaf38f6a70932f84034d2783f7d0c38ae5fe (patch)
treec5e068b9484366c66ea02ee5297d3ab2a8ad0717 /src/core
parentMerge pull request #6832 from bunnei/scheduler-improvements (diff)
parentFix check is thread current in GetThreadContext (diff)
downloadyuzu-aa74aaf38f6a70932f84034d2783f7d0c38ae5fe.tar
yuzu-aa74aaf38f6a70932f84034d2783f7d0c38ae5fe.tar.gz
yuzu-aa74aaf38f6a70932f84034d2783f7d0c38ae5fe.tar.bz2
yuzu-aa74aaf38f6a70932f84034d2783f7d0c38ae5fe.tar.lz
yuzu-aa74aaf38f6a70932f84034d2783f7d0c38ae5fe.tar.xz
yuzu-aa74aaf38f6a70932f84034d2783f7d0c38ae5fe.tar.zst
yuzu-aa74aaf38f6a70932f84034d2783f7d0c38ae5fe.zip
Diffstat (limited to 'src/core')
-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 a90b291da..890c52198 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.