sys_spu: protect sys_spu_image members in kernel mode

Save relevant info in idm, set sys_spu_image segs and nsegs members to 0.
This commit is contained in:
Eladash 2020-01-21 18:40:12 +02:00 committed by Ani
parent 8a176de6a1
commit fad8b38b28
3 changed files with 57 additions and 20 deletions

View file

@ -1132,6 +1132,7 @@ void spu_thread::cpu_task()
skip_npc_set = false;
// Note: works both on RawSPU and threaded SPU!
set_interrupt_status((pc & 1) != 0);
pc &= 0x3fffc;