diff options
| author | 2021-08-19 16:46:30 +0300 | |
|---|---|---|
| committer | 2021-08-19 16:46:30 +0300 | |
| commit | 0b3d12be406a3a0ddb181293a8a87c4623e2009b (patch) | |
| tree | c5e068b9484366c66ea02ee5297d3ab2a8ad0717 /src/core/hle/kernel/svc.cpp | |
| parent | Merge pull request #6832 from bunnei/scheduler-improvements (diff) | |
| download | yuzu-0b3d12be406a3a0ddb181293a8a87c4623e2009b.tar.gz yuzu-0b3d12be406a3a0ddb181293a8a87c4623e2009b.tar.xz yuzu-0b3d12be406a3a0ddb181293a8a87c4623e2009b.zip | |
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 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 | |||
| 1078 | for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) { | 1078 | for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) { |
| 1079 | if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) { | 1079 | if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) { |
| 1080 | current = true; | 1080 | current = true; |
| 1081 | break; | ||
| 1081 | } | 1082 | } |
| 1082 | break; | ||
| 1083 | } | 1083 | } |
| 1084 | 1084 | ||
| 1085 | // If the thread is current, retry until it isn't. | 1085 | // If the thread is current, retry until it isn't. |