mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Removed the icache invalidation code as it is causing frequent code clearing.
This commit is contained in:
@ -418,17 +418,17 @@ bool JitBlock::ContainsAddress(u32 em_address)
|
|||||||
if (address & JIT_ICACHE_VMEM_BIT)
|
if (address & JIT_ICACHE_VMEM_BIT)
|
||||||
{
|
{
|
||||||
u32 cacheaddr = address & JIT_ICACHE_MASK;
|
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)
|
else if (address & JIT_ICACHE_EXRAM_BIT)
|
||||||
{
|
{
|
||||||
u32 cacheaddr = address & JIT_ICACHEEX_MASK;
|
u32 cacheaddr = address & JIT_ICACHEEX_MASK;
|
||||||
memset(iCacheEx + cacheaddr, JIT_ICACHE_INVALID_BYTE, 96);
|
memset(iCacheEx + cacheaddr, JIT_ICACHE_INVALID_BYTE, 32);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
u32 cacheaddr = address & JIT_ICACHE_MASK;
|
u32 cacheaddr = address & JIT_ICACHE_MASK;
|
||||||
memset(iCache + cacheaddr, JIT_ICACHE_INVALID_BYTE, 96);
|
memset(iCache + cacheaddr, JIT_ICACHE_INVALID_BYTE, 32);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -134,8 +134,6 @@ namespace PowerPC
|
|||||||
#endif
|
#endif
|
||||||
if (t == 0xff) // load to the cache
|
if (t == 0xff) // load to the cache
|
||||||
{
|
{
|
||||||
if (jit)
|
|
||||||
jit->GetBlockCache()->InvalidateICache(addr);
|
|
||||||
if (HID0.ILOCK) // instruction cache is locked
|
if (HID0.ILOCK) // instruction cache is locked
|
||||||
return Memory::ReadUnchecked_U32(addr);
|
return Memory::ReadUnchecked_U32(addr);
|
||||||
// select a way
|
// select a way
|
||||||
|
Reference in New Issue
Block a user