mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
sys_spu: Some more fixes of wait flag misuse
This commit is contained in:
parent
a5cc9a5517
commit
87797e117e
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
spu_thread::g_raw_spu_id[index] = idm::last_id();
|
||||||
|
|
||||||
|
ppu.check_state();
|
||||||
*id = index;
|
*id = index;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
@ -2465,6 +2466,7 @@ error_code raw_spu_create_interrupt_tag(u32 id, u32 class_id, u32 /*hwthread*/,
|
||||||
|
|
||||||
if (tag)
|
if (tag)
|
||||||
{
|
{
|
||||||
|
cpu_thread::get_current()->check_state();
|
||||||
*intrtag = tag;
|
*intrtag = tag;
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
@ -2634,6 +2636,7 @@ error_code raw_spu_read_puint_mb(u32 id, vm::ptr<u32> value)
|
||||||
return CELL_ESRCH;
|
return CELL_ESRCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cpu_thread::get_current()->check_state();
|
||||||
*value = thread->ch_out_intr_mbox.pop();
|
*value = thread->ch_out_intr_mbox.pop();
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
@ -2705,6 +2708,7 @@ error_code raw_spu_get_spu_cfg(u32 id, vm::ptr<u32> value)
|
||||||
return CELL_ESRCH;
|
return CELL_ESRCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cpu_thread::get_current()->check_state();
|
||||||
*value = static_cast<u32>(thread->snr_config);
|
*value = static_cast<u32>(thread->snr_config);
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue