diff options
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 2e80b48c2..18fb3c44d 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -1220,10 +1220,10 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V | |||
| 1220 | 1220 | ||
| 1221 | auto* const current_process = Core::CurrentProcess(); | 1221 | auto* const current_process = Core::CurrentProcess(); |
| 1222 | 1222 | ||
| 1223 | if (processor_id == THREADPROCESSORID_DEFAULT) { | 1223 | if (processor_id == THREADPROCESSORID_IDEAL) { |
| 1224 | // Set the target CPU to the one specified in the process' exheader. | 1224 | // Set the target CPU to the one specified by the process. |
| 1225 | processor_id = current_process->GetDefaultProcessorID(); | 1225 | processor_id = current_process->GetIdealCore(); |
| 1226 | ASSERT(processor_id != THREADPROCESSORID_DEFAULT); | 1226 | ASSERT(processor_id != THREADPROCESSORID_IDEAL); |
| 1227 | } | 1227 | } |
| 1228 | 1228 | ||
| 1229 | switch (processor_id) { | 1229 | switch (processor_id) { |
| @@ -1632,13 +1632,13 @@ static ResultCode SetThreadCoreMask(Handle thread_handle, u32 core, u64 mask) { | |||
| 1632 | return ERR_INVALID_HANDLE; | 1632 | return ERR_INVALID_HANDLE; |
| 1633 | } | 1633 | } |
| 1634 | 1634 | ||
| 1635 | if (core == static_cast<u32>(THREADPROCESSORID_DEFAULT)) { | 1635 | if (core == static_cast<u32>(THREADPROCESSORID_IDEAL)) { |
| 1636 | const u8 default_processor_id = thread->GetOwnerProcess()->GetDefaultProcessorID(); | 1636 | const u8 ideal_cpu_core = thread->GetOwnerProcess()->GetIdealCore(); |
| 1637 | 1637 | ||
| 1638 | ASSERT(default_processor_id != static_cast<u8>(THREADPROCESSORID_DEFAULT)); | 1638 | ASSERT(ideal_cpu_core != static_cast<u8>(THREADPROCESSORID_IDEAL)); |
| 1639 | 1639 | ||
| 1640 | // Set the target CPU to the one specified in the process' exheader. | 1640 | // Set the target CPU to the ideal core specified by the process. |
| 1641 | core = default_processor_id; | 1641 | core = ideal_cpu_core; |
| 1642 | mask = 1ULL << core; | 1642 | mask = 1ULL << core; |
| 1643 | } | 1643 | } |
| 1644 | 1644 | ||