From: notaz Date: Wed, 22 Jun 2011 13:07:01 +0000 (+0300) Subject: drc: merge Ari64's patch: 11_dealloc_reg_clear_const_flag X-Git-Tag: r9~72 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79c75f1b7efbec9dc8bbd6e3546ec1c07040b702;p=pcsx_rearmed.git drc: merge Ari64's patch: 11_dealloc_reg_clear_const_flag --- diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 95e51042..66603ea8 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -599,6 +599,7 @@ void clear_const(struct regstat *cur,signed char reg) int is_const(struct regstat *cur,signed char reg) { int hr; + if(reg<0) return 0; if(!reg) return 1; for (hr=0;hrregmap[hr]&63)==reg) { @@ -9751,7 +9752,10 @@ int new_recompile_block(int addr) if(likely[i]) { regs[i].regmap[hr]=-1; regs[i].isconst&=~(1<