fix for WAI instruction stalling on SCB interrupt firing - Fantavision

This commit is contained in:
Dagen Brock 2020-08-19 14:32:43 -05:00
parent 3cb764d813
commit e8ed62129f

View File

@ -2217,8 +2217,12 @@ instcb_SYM /* WAI */
b dispatch
stw scratch2,r%g_wait_pending(scratch1)
#else
g_wait_pending = 1;
CYCLES_FINISH
if(g_irq_pending) {
g_wait_pending = 0;
INC_KPC_1;
} else {
g_wait_pending = 1;
}
#endif
instcc_SYM /* CPY abs */