Fixed the slowdown that occurred under JIT32. Fixes issue 4969.

This commit is contained in:
skidau 2011-11-05 13:04:46 +11:00
parent 3d2a2abb49
commit 9eaf20cc44
3 changed files with 0 additions and 10 deletions

View File

@ -265,7 +265,6 @@ inline void WriteToHardware(u32 em_address, const T data, u32 effective_address,
((em_address & 0xF0000000) == 0xC0000000) || ((em_address & 0xF0000000) == 0xC0000000) ||
((em_address & 0xF0000000) == 0x00000000)) ((em_address & 0xF0000000) == 0x00000000))
{ {
PowerPC::ppcState.iCache.InvalidateBlock(em_address);
*(T*)&m_pRAM[em_address & RAM_MASK] = bswap(data); *(T*)&m_pRAM[em_address & RAM_MASK] = bswap(data);
return; return;
} }
@ -273,7 +272,6 @@ inline void WriteToHardware(u32 em_address, const T data, u32 effective_address,
((em_address & 0xF0000000) == 0xD0000000) || ((em_address & 0xF0000000) == 0xD0000000) ||
((em_address & 0xF0000000) == 0x10000000)) ((em_address & 0xF0000000) == 0x10000000))
{ {
PowerPC::ppcState.iCache.InvalidateBlock(em_address);
*(T*)&m_pEXRAM[em_address & EXRAM_MASK] = bswap(data); *(T*)&m_pEXRAM[em_address & EXRAM_MASK] = bswap(data);
return; return;
} }
@ -286,7 +284,6 @@ inline void WriteToHardware(u32 em_address, const T data, u32 effective_address,
(bFakeVMEM && ((em_address &0xF0000000) == 0x40000000))) (bFakeVMEM && ((em_address &0xF0000000) == 0x40000000)))
{ {
// fake VMEM // fake VMEM
PowerPC::ppcState.iCache.InvalidateBlock(em_address);
*(T*)&m_pFakeVMEM[em_address & FAKEVMEM_MASK] = bswap(data); *(T*)&m_pFakeVMEM[em_address & FAKEVMEM_MASK] = bswap(data);
} }
else else

View File

@ -103,12 +103,6 @@ namespace PowerPC
jit->GetBlockCache()->InvalidateICache(addr); jit->GetBlockCache()->InvalidateICache(addr);
} }
void InstructionCache::InvalidateBlock(u32 addr)
{
if (jit)
jit->GetBlockCache()->InvalidateICache(addr);
}
u32 InstructionCache::ReadInstruction(u32 addr) u32 InstructionCache::ReadInstruction(u32 addr)
{ {
if (!HID0.ICE) // instruction cache is disabled if (!HID0.ICE) // instruction cache is disabled

View File

@ -53,7 +53,6 @@ namespace PowerPC
void Reset(); void Reset();
u32 ReadInstruction(u32 addr); u32 ReadInstruction(u32 addr);
void Invalidate(u32 addr); void Invalidate(u32 addr);
void InvalidateBlock(u32 addr);
}; };
} }