X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=mupen64plus-pandora.git;a=blobdiff_plain;f=source%2Fmupen64plus-core%2Fsrc%2Fr4300%2Fx86%2Fgr4300.c;h=830d4c36e222c192d86870bda5bc09d35efa8f0a;hp=d2ed999728842ca39e299cbd039338b1d5aee39e;hb=2d26287291331f2b1793a8e76ede08c75654fb7c;hpb=01d8ca6fb06a8261602900cab63c61e5a1b143c9 diff --git a/source/mupen64plus-core/src/r4300/x86/gr4300.c b/source/mupen64plus-core/src/r4300/x86/gr4300.c index d2ed999..830d4c3 100644 --- a/source/mupen64plus-core/src/r4300/x86/gr4300.c +++ b/source/mupen64plus-core/src/r4300/x86/gr4300.c @@ -47,22 +47,18 @@ int branch_taken; static void genupdate_count(unsigned int addr) { -#ifndef COMPARE_CORE -#ifndef DBG +#if !defined(COMPARE_CORE) && !defined(DBG) mov_reg32_imm32(EAX, addr); sub_reg32_m32(EAX, (unsigned int*)(&last_addr)); - shr_reg32_imm8(EAX, 1); + shr_reg32_imm8(EAX, 2); + mov_reg32_m32(EDX, &count_per_op); + mul_reg32(EDX); add_m32_reg32((unsigned int*)(&Count), EAX); #else mov_m32_imm32((unsigned int*)(&PC), (unsigned int)(dst+1)); mov_reg32_imm32(EAX, (unsigned int)update_count); call_reg32(EAX); #endif -#else - mov_m32_imm32((unsigned int*)(&PC), (unsigned int)(dst+1)); - mov_reg32_imm32(EAX, (unsigned int)update_count); - call_reg32(EAX); -#endif } static void gencheck_interupt(unsigned int instr_structure)