sh4_sched: Avoid scheduling to -1, because, magic values.

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2015-05-07 22:10:00 +02:00
parent 4b46de89bb
commit c25ce04b48
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ void sh4_sched_request(int id, int cycles)
else else
{ {
list[id].end = list[id].start + cycles; list[id].end = list[id].start + cycles;
if (list[id].end == -1)
list[id].end++;
} }
sh4_sched_ffts(); sh4_sched_ffts();