aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2011-06-22 15:55:08 +0300
committernotaz2011-07-08 00:15:07 +0300
commitb7217e13a765d299feaac0f7646880e53039d9e2 (patch)
treee27fa83c7e9293b22477d30b8fb40698b87be276
parent20d507ba0e7695190b32b3a06d8024e3ab81d158 (diff)
downloadpcsx_rearmed-b7217e13a765d299feaac0f7646880e53039d9e2.tar.gz
pcsx_rearmed-b7217e13a765d299feaac0f7646880e53039d9e2.tar.bz2
pcsx_rearmed-b7217e13a765d299feaac0f7646880e53039d9e2.zip
drc: merge Ari64's patch: 03_needed_again
-rw-r--r--libpcsxcore/new_dynarec/new_dynarec.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c
index 2368a68..95e5104 100644
--- a/libpcsxcore/new_dynarec/new_dynarec.c
+++ b/libpcsxcore/new_dynarec/new_dynarec.c
@@ -719,12 +719,6 @@ int needed_again(int r, int i)
int j;
int b=-1;
int rn=10;
- int hr;
- u_char hsn[MAXREG+1];
- int preferred_reg;
-
- memset(hsn,10,sizeof(hsn));
- lsn(hsn,i,&preferred_reg);
if(i>0&&(itype[i-1]==UJUMP||itype[i-1]==RJUMP||(source[i-1]>>16)==0x1000))
{
@@ -777,11 +771,7 @@ int needed_again(int r, int i)
}
}
}*/
- for(hr=0;hr<HOST_REGS;hr++) {
- if(hr!=EXCLUDE_REG) {
- if(rn<hsn[hr]) return 1;
- }
- }
+ if(rn<10) return 1;
return 0;
}