sys_cond/sys_mutex improved

This commit is contained in:
Nekotekina 2015-07-19 04:56:33 +03:00
parent 43d3ccce95
commit 8175630619
12 changed files with 163 additions and 93 deletions

View file

@ -535,7 +535,7 @@ void SPUThread::process_mfc_cmd(u32 cmd)
u32 SPUThread::get_events(bool waiting)
{
// check reservation status and set SPU_EVENT_LR if lost
if (last_raddr != 0 && !vm::reservation_test(get_ctrl()))
if (last_raddr != 0 && !vm::reservation_test(get_thread_ctrl()))
{
ch_event_stat |= SPU_EVENT_LR;