mirror of https://github.com/PCSX2/pcsx2.git
pcsx2:tlb: enable GoemonUnloadTlb on recompiler
This commit is contained in:
parent
a8ad598153
commit
e6de35f5ac
|
@ -1739,9 +1739,15 @@ static void __fastcall recRecompile( const u32 startpc )
|
||||||
xCALL(PreBlockCheck);
|
xCALL(PreBlockCheck);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (EmuConfig.Gamefixes.GoemonTlbHack) {
|
||||||
|
if (pc == 0x33ad48) {
|
||||||
// 0x33ad48 is the return address of the function that populate the TLB cache
|
// 0x33ad48 is the return address of the function that populate the TLB cache
|
||||||
if (pc == 0x33ad48 && EmuConfig.Gamefixes.GoemonTlbHack) {
|
|
||||||
xCALL(GoemonPreloadTlb);
|
xCALL(GoemonPreloadTlb);
|
||||||
|
} else if (pc == 0x3563b8) {
|
||||||
|
// 0x3563b8 is the start address of the function that invalidate entry in TLB cache
|
||||||
|
MOV32MtoR(ECX, (int)&cpuRegs.GPR.n.a0.UL[ 0 ] );
|
||||||
|
xCALL(GoemonUnloadTlb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// go until the next branch
|
// go until the next branch
|
||||||
|
|
Loading…
Reference in New Issue