From 3eaa704818ac8d59d31ff362d99a673ee7118641 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 16 Feb 2011 23:52:36 +0200 Subject: drc: merge Ari64's patch: 10_unnecessary_invalidate also adjust memhandlers to do inv checks as recompiler no longer does them for unknown writes. --- libpcsxcore/new_dynarec/new_dynarec.c | 13 +++++-------- libpcsxcore/new_dynarec/pcsxmem.c | 3 --- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 4fb5db9..84b4400 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 f5a78ff..ae35f2d 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 -- cgit v1.2.3