Synchronised the JIT cache with the ICache by invalidating the JIT block when the ICache is updated. This fixes Mario & Sonic at the Olympic Winter Games. Thanks to DimitriPilot3 for the tip.

Fixes issue 1610.
This commit is contained in:
skidau 2011-10-16 16:26:43 +11:00
parent 544132bc3e
commit c0498ca831
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ 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