mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
sys_spu: Some more fixes of wait flag misuse
This commit is contained in:
parent
a5cc9a5517
commit
87797e117e
@ -2260,6 +2260,7 @@ error_code sys_raw_spu_create(ppu_thread& ppu, vm::ptr<u32> id, vm::ptr<void> at
|
||||
|
||||
spu_thread::g_raw_spu_id[index] = idm::last_id();
|
||||
|
||||
ppu.check_state();
|
||||
*id = index;
|
||||
|
||||
return CELL_OK;
|
||||
@ -2465,6 +2466,7 @@ error_code raw_spu_create_interrupt_tag(u32 id, u32 class_id, u32 /*hwthread*/,
|
||||
|
||||
if (tag)
|
||||
{
|
||||
cpu_thread::get_current()->check_state();
|
||||
*intrtag = tag;
|
||||
return CELL_OK;
|
||||
}
|
||||
@ -2634,6 +2636,7 @@ error_code raw_spu_read_puint_mb(u32 id, vm::ptr<u32> value)
|
||||
return CELL_ESRCH;
|
||||
}
|
||||
|
||||
cpu_thread::get_current()->check_state();
|
||||
*value = thread->ch_out_intr_mbox.pop();
|
||||
|
||||
return CELL_OK;
|
||||
@ -2705,6 +2708,7 @@ error_code raw_spu_get_spu_cfg(u32 id, vm::ptr<u32> value)
|
||||
return CELL_ESRCH;
|
||||
}
|
||||
|
||||
cpu_thread::get_current()->check_state();
|
||||
*value = static_cast<u32>(thread->snr_config);
|
||||
|
||||
return CELL_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user