aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2011-06-22 17:17:42 +0300
committernotaz2011-07-08 00:15:07 +0300
commit2a70696411b92af26a72c2b28212e4fe73cdd2d8 (patch)
tree4521ba3efc7a578c5b82be4a8cc7e4382b9a935d
parentf776eb14d490a2c4391666ce5beefe058e7e03d5 (diff)
downloadpcsx_rearmed-2a70696411b92af26a72c2b28212e4fe73cdd2d8.tar.gz
pcsx_rearmed-2a70696411b92af26a72c2b28212e4fe73cdd2d8.tar.bz2
pcsx_rearmed-2a70696411b92af26a72c2b28212e4fe73cdd2d8.zip
drc: merge Ari64's patch: 16_continue_after_branch_into_delay_slot
-rw-r--r--libpcsxcore/new_dynarec/new_dynarec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c
index f1bdbfc..9fdaa72 100644
--- a/libpcsxcore/new_dynarec/new_dynarec.c
+++ b/libpcsxcore/new_dynarec/new_dynarec.c
@@ -8577,6 +8577,7 @@ int new_recompile_block(int addr)
// Does the block continue due to a branch?
for(j=i-1;j>=0;j--)
{
+ if(ba[j]==start+i*4) done=j=0; // Branch into delay slot
if(ba[j]==start+i*4+4) done=j=0;
if(ba[j]==start+i*4+8) done=j=0;
}