diff options
author | Subv <subv2112@gmail.com> | 2018-05-30 20:33:57 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-05-31 04:36:29 +0200 |
commit | c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff (patch) | |
tree | a60a407b4472f946506e1951dd5b24e72215af43 /src/core | |
parent | Kernel/SVC: Support special core values -2 and -3 in svcSetThreadCoreMask. (diff) | |
download | yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.tar yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.tar.gz yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.tar.bz2 yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.tar.lz yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.tar.xz yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.tar.zst yuzu-c02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 391d8990f..0075e4a0f 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -460,13 +460,13 @@ void Thread::UpdatePriority() { void Thread::ChangeCore(u32 core, u64 mask) { ideal_core = core; - mask = mask; + affinity_mask = mask; if (status != THREADSTATUS_READY) { return; } - boost::optional<s32> new_processor_id{GetNextProcessorId(mask)}; + boost::optional<s32> new_processor_id{GetNextProcessorId(affinity_mask)}; if (!new_processor_id) { new_processor_id = processor_id; |