drc: adjust alignment checking
[pcsx_rearmed.git] / libpcsxcore / new_dynarec / emu_if.c
index 2590b3a..06612db 100644 (file)
@@ -28,7 +28,9 @@ void pcsx_mtc0(u32 reg, u32 val)
        evprintf("MTC0 %d #%x @%08x %u\n", reg, val, psxRegs.pc, psxRegs.cycle);
        MTC0(&psxRegs, reg, val);
        gen_interupt(&psxRegs.CP0);
-       if (psxRegs.CP0.n.Cause & psxRegs.CP0.n.SR & 0x0300) // possible sw irq
+
+       //if (psxRegs.CP0.n.Cause & psxRegs.CP0.n.SR & 0x0300) // possible sw irq
+       if ((psxRegs.pc & 0x803ffeff) == 0x80000080)
                pending_exception = 1;
 }
 
@@ -296,6 +298,7 @@ static void ari64_notify(enum R3000Anote note, void *data) {
                break;
        case R3000ACPU_NOTIFY_AFTER_LOAD:
                ari64_reset();
+               psxInt.Notify(note, data);
                break;
        }
 }