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:
parent
544132bc3e
commit
c0498ca831
|
@ -134,6 +134,8 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue