Applied the multiboot dol fix to JITIL too.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6089 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau 2010-08-11 11:15:59 +00:00
parent 6918a9e1d6
commit e82c128043
2 changed files with 4 additions and 2 deletions

View File

@ -487,7 +487,7 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.op = &ops[i]; js.op = &ops[i];
js.instructionNumber = i; js.instructionNumber = i;
const GekkoOPInfo *opinfo = GetOpInfo(ops[i].inst); const GekkoOPInfo *opinfo = GetOpInfo(ops[i].inst);
js.downcountAmount += (opinfo->numCyclesMinusOne + 1); js.downcountAmount++;
if (i == (int)size - 1) if (i == (int)size - 1)
{ {

View File

@ -140,9 +140,11 @@ bool JitBlock::ContainsAddress(u32 em_address)
void JitBlockCache::ClearSafe() void JitBlockCache::ClearSafe()
{ {
#ifdef JIT_UNLIMITED_ICACHE
memset(iCache, JIT_ICACHE_INVALID_BYTE, JIT_ICACHE_SIZE); memset(iCache, JIT_ICACHE_INVALID_BYTE, JIT_ICACHE_SIZE);
memset(iCacheEx, JIT_ICACHE_INVALID_BYTE, JIT_ICACHEEX_SIZE); memset(iCacheEx, JIT_ICACHE_INVALID_BYTE, JIT_ICACHEEX_SIZE);
memset(iCacheVMEM, JIT_ICACHE_INVALID_BYTE, JIT_ICACHE_SIZE); memset(iCacheVMEM, JIT_ICACHE_INVALID_BYTE, JIT_ICACHE_SIZE);
#endif
} }
/*void JitBlockCache::DestroyBlocksWithFlag(BlockFlag death_flag) /*void JitBlockCache::DestroyBlocksWithFlag(BlockFlag death_flag)