Removed the icache invalidation code as it is causing frequent code clearing.

This commit is contained in:
skidau 2011-10-19 02:36:30 +11:00
parent 1e558aedeb
commit 5b2c5c9ce3
2 changed files with 3 additions and 5 deletions

View File

@ -418,17 +418,17 @@ bool JitBlock::ContainsAddress(u32 em_address)
if (address & JIT_ICACHE_VMEM_BIT)
{
u32 cacheaddr = address & JIT_ICACHE_MASK;
memset(iCacheVMEM + cacheaddr, JIT_ICACHE_INVALID_BYTE, 96);
memset(iCacheVMEM + cacheaddr, JIT_ICACHE_INVALID_BYTE, 32);
}
else if (address & JIT_ICACHE_EXRAM_BIT)
{
u32 cacheaddr = address & JIT_ICACHEEX_MASK;
memset(iCacheEx + cacheaddr, JIT_ICACHE_INVALID_BYTE, 96);
memset(iCacheEx + cacheaddr, JIT_ICACHE_INVALID_BYTE, 32);
}
else
{
u32 cacheaddr = address & JIT_ICACHE_MASK;
memset(iCache + cacheaddr, JIT_ICACHE_INVALID_BYTE, 96);
memset(iCache + cacheaddr, JIT_ICACHE_INVALID_BYTE, 32);
}
#endif
}

View File

@ -134,8 +134,6 @@ namespace PowerPC
#endif
if (t == 0xff) // load to the cache
{
if (jit)
jit->GetBlockCache()->InvalidateICache(addr);
if (HID0.ILOCK) // instruction cache is locked
return Memory::ReadUnchecked_U32(addr);
// select a way