diff options
author | Lioncash <mathew1800@gmail.com> | 2018-12-31 02:59:52 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-31 02:59:54 +0100 |
commit | 205e6d3b975a7f699aeb0341c78a55562094c32b (patch) | |
tree | 6708c8120ba81f355788a011989ed9886be32f37 /src/core | |
parent | Merge pull request #1956 from lioncash/process-thread (diff) | |
download | yuzu-205e6d3b975a7f699aeb0341c78a55562094c32b.tar yuzu-205e6d3b975a7f699aeb0341c78a55562094c32b.tar.gz yuzu-205e6d3b975a7f699aeb0341c78a55562094c32b.tar.bz2 yuzu-205e6d3b975a7f699aeb0341c78a55562094c32b.tar.lz yuzu-205e6d3b975a7f699aeb0341c78a55562094c32b.tar.xz yuzu-205e6d3b975a7f699aeb0341c78a55562094c32b.tar.zst yuzu-205e6d3b975a7f699aeb0341c78a55562094c32b.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 660e6f577..352ab2d14 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -1233,13 +1233,7 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V ASSERT(processor_id != THREADPROCESSORID_IDEAL); } - switch (processor_id) { - case THREADPROCESSORID_0: - case THREADPROCESSORID_1: - case THREADPROCESSORID_2: - case THREADPROCESSORID_3: - break; - default: + if (processor_id < THREADPROCESSORID_0 || processor_id > THREADPROCESSORID_3) { LOG_ERROR(Kernel_SVC, "Invalid thread processor ID: {}", processor_id); return ERR_INVALID_PROCESSOR_ID; } |