From 35775df7aeb2dd9c6bafa00f24801c6bd69c15ec Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 22 Mar 2011 18:45:15 +0200 Subject: [PATCH] drc: start in more consistent state useful when comparing things --- libpcsxcore/new_dynarec/new_dynarec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)); -- 2.39.5