From 946ba3be2934a03fe8f3574aebc9306c15adcdf4 Mon Sep 17 00:00:00 2001 From: clienthax Date: Tue, 14 Nov 2017 18:24:55 +0000 Subject: [PATCH] Fix bug in sys_spu_thread_group_create (#3734) --- rpcs3/Emu/Cell/lv2/sys_spu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_spu.cpp b/rpcs3/Emu/Cell/lv2/sys_spu.cpp index 379b839f6e..7292507e65 100644 --- a/rpcs3/Emu/Cell/lv2/sys_spu.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_spu.cpp @@ -296,7 +296,7 @@ error_code sys_spu_thread_group_create(vm::ptr id, u32 num, s32 prio, vm::p // TODO: max num value should be affected by sys_spu_initialize() settings - if (!num || num > 6 || prio < 16 || prio > 255) + if (!num || num > 6 || ((prio < 16 || prio > 255) && attr->type != SYS_SPU_THREAD_GROUP_TYPE_EXCLUSIVE_NON_CONTEXT)) { return CELL_EINVAL; }