From 79c75f1b7efbec9dc8bbd6e3546ec1c07040b702 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 22 Jun 2011 16:07:01 +0300 Subject: drc: merge Ari64's patch: 11_dealloc_reg_clear_const_flag --- libpcsxcore/new_dynarec/new_dynarec.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 95e5104..66603ea 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<