Minor changes (#2352)

* More initial values for rsx method registers

* Implemented spu decrementer event

* Remove u32 cast
This commit is contained in:
Oil 2017-02-07 23:59:59 +03:00 committed by Ivan
parent 47b4c649f1
commit 1669d0fdbd
4 changed files with 28 additions and 3 deletions

View file

@ -511,6 +511,12 @@ u32 SPUThread::get_events(bool waiting)
last_raddr = 0;
}
// SPU Decrementer Event
if ((ch_dec_value - (get_timebased_time() - ch_dec_start_timestamp)) >> 31)
{
ch_event_stat |= SPU_EVENT_TM;
}
// initialize waiting
if (waiting)
{