X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fnew_dynarec%2Fnew_dynarec.c;h=66603ea8857f33dfafeb15242cfd39b12d4aa7b0;hp=95e510423a92f06465d57ab2e04d652a68c5a10f;hb=79c75f1b7efbec9dc8bbd6e3546ec1c07040b702;hpb=0c1fe38bf0d4077fb38ee1d1f42ec819b17a0be0 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<