From: notaz Date: Wed, 16 Feb 2011 21:52:36 +0000 (+0200) Subject: drc: merge Ari64's patch: 10_unnecessary_invalidate X-Git-Tag: r7~22 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eaa704818ac8d59d31ff362d99a673ee7118641;p=pcsx_rearmed.git drc: merge Ari64's patch: 10_unnecessary_invalidate also adjust memhandlers to do inv checks as recompiler no longer does them for unknown writes. --- diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 4fb5db9a..84b44005 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -3184,14 +3184,6 @@ void store_assemble(int i,struct regstat *i_regs) } type=STORED_STUB; } - if(!using_tlb&&(!c||memtarget)) - // addr could be a temp, make sure it survives STORE*_STUB - reglist|=1<regmap,rs2[i],ccadj[i],reglist); - } if(!using_tlb) { if(!c||memtarget) { #ifdef DESTRUCTIVE_SHIFT @@ -3211,6 +3203,11 @@ void store_assemble(int i,struct regstat *i_regs) add_stub(INVCODE_STUB,jaddr2,(int)out,reglist|(1<regmap,rs2[i],ccadj[i],reglist); + } //if(opcode[i]==0x2B || opcode[i]==0x3F) //if(opcode[i]==0x2B || opcode[i]==0x28) //if(opcode[i]==0x2B || opcode[i]==0x29) diff --git a/libpcsxcore/new_dynarec/pcsxmem.c b/libpcsxcore/new_dynarec/pcsxmem.c index f5a78ffd..ae35f2df 100644 --- a/libpcsxcore/new_dynarec/pcsxmem.c +++ b/libpcsxcore/new_dynarec/pcsxmem.c @@ -350,9 +350,6 @@ void new_dyna_pcsx_mem_init(void) readmemb[i] = ari_read_ram8; readmemh[i] = ari_read_ram16; readmem[i] = ari_read_ram32; - writememb[i] = ari_write_ram8; - writememh[i] = ari_write_ram16; - writemem[i] = ari_write_ram32; } // BIOS and it's mirrors