From: notaz Date: Tue, 22 Mar 2011 16:45:15 +0000 (+0200) Subject: drc: start in more consistent state X-Git-Tag: r9~99 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35775df7aeb2dd9c6bafa00f24801c6bd69c15ec;p=pcsx_rearmed.git drc: start in more consistent state useful when comparing things --- diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index c51311f4..d0cdc5c4 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -7772,10 +7772,9 @@ void disassemble_inst(int i) void new_dynarec_clear_full() { int n; - for(n=0x80000;n<0x80800;n++) - invalid_code[n]=1; - for(n=0;n<65536;n++) - hash_table[n][0]=hash_table[n][2]=-1; + out=(u_char *)BASE_ADDR; + memset(invalid_code,1,sizeof(invalid_code)); + memset(hash_table,0xff,sizeof(hash_table)); memset(mini_ht,-1,sizeof(mini_ht)); memset(restore_candidate,0,sizeof(restore_candidate)); memset(shadow,0,sizeof(shadow));