X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fmupen64plus-core%2Fsrc%2Fr4300%2Fnew_dynarec%2Fnew_dynarec.c;h=f9fbc4094215eab68a274efa214deafc0f5f214a;hb=ce68e3b9f89132315d1bd69800e364da96340eb8;hp=8ee4eda2fdbaff5fb01c8033c56b61833e43b8f7;hpb=a40a7e6a4029057af19eaac5b2406fa282b12edb;p=mupen64plus-pandora.git diff --git a/source/mupen64plus-core/src/r4300/new_dynarec/new_dynarec.c b/source/mupen64plus-core/src/r4300/new_dynarec/new_dynarec.c old mode 100644 new mode 100755 index 8ee4eda..f9fbc40 --- a/source/mupen64plus-core/src/r4300/new_dynarec/new_dynarec.c +++ b/source/mupen64plus-core/src/r4300/new_dynarec/new_dynarec.c @@ -24,6 +24,7 @@ #include #include //include for uint64_t #include +//#define assert(a) {} #include "../recomp.h" #include "../recomph.h" //include for function prototypes @@ -857,7 +858,7 @@ static void divu64(uint64_t dividend,uint64_t divisor) // ,(int)reg[LOREG],(int)(reg[LOREG]>>32)); } -static void mult64(uint64_t m1,uint64_t m2) +static void mult64(int64_t m1,int64_t m2) { unsigned long long int op1, op2, op3, op4; unsigned long long int result1, result2, result3, result4; @@ -1727,7 +1728,7 @@ void multdiv_alloc(struct regstat *current,int i) current->uu&=~(1LL<uu&=~(1LL<10) alloc_reg64(current,i,LOREG); + //if(HOST_REGS>10) alloc_reg64(current,i,LOREG); //*SEB* Why commenting this line? uncommenting make SM64 freeze after title (before mario head and spinning stars) alloc_reg64(current,i,rs1[i]); alloc_reg64(current,i,rs2[i]); alloc_all(current,i); @@ -1743,12 +1744,12 @@ void multdiv_alloc(struct regstat *current,int i) // Multiply by zero is zero. // MIPS does not have a divide by zero exception. // The result is undefined, we return zero. - alloc_reg(current,i,HIREG); - alloc_reg(current,i,LOREG); - current->is32|=1LL<is32|=1LL<is32|=1LL<is32|=1LL<