From 15d0ba027cfbe88c69b539cc0c9ac6769e577c78 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 26 Oct 2011 00:00:05 +0300 Subject: [PATCH] drc: detect sw irqs properly --- libpcsxcore/new_dynarec/emu_if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpcsxcore/new_dynarec/emu_if.c b/libpcsxcore/new_dynarec/emu_if.c index 38d94921..00af7f7a 100644 --- a/libpcsxcore/new_dynarec/emu_if.c +++ b/libpcsxcore/new_dynarec/emu_if.c @@ -110,6 +110,8 @@ void pcsx_mtc0(u32 reg, u32 val) evprintf("MTC0 %d #%x @%08x %u\n", reg, val, psxRegs.pc, psxRegs.cycle); MTC0(reg, val); gen_interupt(); + if (Cause & Status & 0x0300) // possible sw irq + pending_exception = 1; } void pcsx_mtc0_ds(u32 reg, u32 val) -- 2.39.2