From 911f2d55ac72cab3417983708cbb6a5fde2f13db Mon Sep 17 00:00:00 2001
From: notaz <notasas@gmail.com>
Date: Sun, 9 Oct 2011 20:00:55 +0300
Subject: [PATCH] drc: check for interrupts after RFE

this missing check wasn't causing too many problems because
of events on every hsync, which are gone now.
---
 libpcsxcore/new_dynarec/new_dynarec.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c
index 4cb43c8f..96980375 100644
--- a/libpcsxcore/new_dynarec/new_dynarec.c
+++ b/libpcsxcore/new_dynarec/new_dynarec.c
@@ -5403,6 +5403,12 @@ void rjump_assemble(int i,struct regstat *i_regs)
   //assert(adj==0);
   emit_addimm_and_set_flags(CLOCK_ADJUST(ccadj[i]+2),HOST_CCREG);
   add_stub(CC_STUB,(int)out,jump_vaddr_reg[rs],0,i,-1,TAKEN,0);
+#ifdef PCSX
+  if(itype[i+1]==COP0&&(source[i+1]&0x3f)==0x10)
+    // special case for RFE
+    emit_jmp(0);
+  else
+#endif
   emit_jns(0);
   //load_regs_bt(branch_regs[i].regmap,branch_regs[i].is32,branch_regs[i].dirty,-1);
   #ifdef USE_MINI_HT
-- 
2.39.5