summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-05-30 20:33:57 +0200
committerSubv <subv2112@gmail.com>2018-05-31 04:36:29 +0200
commitc02d7c8ce7c7b0c80cdeb5b070be2ebd855741ff (patch)
treea60a407b4472f946506e1951dd5b24e72215af43 /src/core/hle/kernel/thread.cpp
parentKernel/SVC: Support special core values -2 and -3 in svcSetThreadCoreMask. (diff)
downloadyuzu-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/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp4
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;