diff options
author | notaz | 2011-06-22 15:55:08 +0300 |
---|---|---|
committer | notaz | 2011-07-08 00:15:07 +0300 |
commit | b7217e13a765d299feaac0f7646880e53039d9e2 (patch) | |
tree | e27fa83c7e9293b22477d30b8fb40698b87be276 /libpcsxcore/new_dynarec | |
parent | 20d507ba0e7695190b32b3a06d8024e3ab81d158 (diff) | |
download | pcsx_rearmed-b7217e13a765d299feaac0f7646880e53039d9e2.tar.gz pcsx_rearmed-b7217e13a765d299feaac0f7646880e53039d9e2.tar.bz2 pcsx_rearmed-b7217e13a765d299feaac0f7646880e53039d9e2.zip |
drc: merge Ari64's patch: 03_needed_again
Diffstat (limited to 'libpcsxcore/new_dynarec')
-rw-r--r-- | libpcsxcore/new_dynarec/new_dynarec.c | 12 |
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; } |