diff options
author | Lioncash <mathew1800@gmail.com> | 2018-12-31 03:09:00 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-31 03:09:46 +0100 |
commit | 87696041442fdcb735f405f05ca4e3722b4f7128 (patch) | |
tree | c56c54c4677de9d07be0a0e727f4a4d8d2ad5b26 | |
parent | kernel/svc: Simplify thread core ID sanitizing in CreateThread (diff) | |
download | yuzu-87696041442fdcb735f405f05ca4e3722b4f7128.tar yuzu-87696041442fdcb735f405f05ca4e3722b4f7128.tar.gz yuzu-87696041442fdcb735f405f05ca4e3722b4f7128.tar.bz2 yuzu-87696041442fdcb735f405f05ca4e3722b4f7128.tar.lz yuzu-87696041442fdcb735f405f05ca4e3722b4f7128.tar.xz yuzu-87696041442fdcb735f405f05ca4e3722b4f7128.tar.zst yuzu-87696041442fdcb735f405f05ca4e3722b4f7128.zip |
-rw-r--r-- | src/core/hle/kernel/process.h | 6 | ||||
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 450dc6eeb..b710104ab 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -173,13 +173,13 @@ public: return ideal_core; } - /// Gets the bitmask of allowed CPUs that this process' threads can run on. - u64 GetAllowedProcessorMask() const { + /// Gets the bitmask of allowed cores that this process' threads can run on. + u64 GetCoreMask() const { return capabilities.GetCoreMask(); } /// Gets the bitmask of allowed thread priorities. - u64 GetAllowedThreadPriorityMask() const { + u64 GetPriorityMask() const { return capabilities.GetPriorityMask(); } diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 352ab2d14..8d8d4e0ab 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -715,8 +715,8 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) enum class GetInfoType : u64 { // 1.0.0+ - AllowedCpuIdBitmask = 0, - AllowedThreadPrioBitmask = 1, + AllowedCPUCoreMask = 0, + AllowedThreadPriorityMask = 1, MapRegionBaseAddr = 2, MapRegionSize = 3, HeapRegionBaseAddr = 4, @@ -747,8 +747,8 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) const auto info_id_type = static_cast<GetInfoType>(info_id); switch (info_id_type) { - case GetInfoType::AllowedCpuIdBitmask: - case GetInfoType::AllowedThreadPrioBitmask: + case GetInfoType::AllowedCPUCoreMask: + case GetInfoType::AllowedThreadPriorityMask: case GetInfoType::MapRegionBaseAddr: case GetInfoType::MapRegionSize: case GetInfoType::HeapRegionBaseAddr: @@ -774,12 +774,12 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) } switch (info_id_type) { - case GetInfoType::AllowedCpuIdBitmask: - *result = process->GetAllowedProcessorMask(); + case GetInfoType::AllowedCPUCoreMask: + *result = process->GetCoreMask(); return RESULT_SUCCESS; - case GetInfoType::AllowedThreadPrioBitmask: - *result = process->GetAllowedThreadPriorityMask(); + case GetInfoType::AllowedThreadPriorityMask: + *result = process->GetPriorityMask(); return RESULT_SUCCESS; case GetInfoType::MapRegionBaseAddr: |