mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 05:54:57 +00:00
Jit: memcheck
This commit is contained in:
parent
c896d41c37
commit
00d65f7a69
1 changed files with 9 additions and 0 deletions
|
@ -917,6 +917,12 @@ u8* Jit64::DoJit(u32 em_address, JitBlock* b, u32 nextPC)
|
|||
m_exception_handler_at_loc[js.fastmemLoadStore] = GetWritableCodePtr();
|
||||
}
|
||||
|
||||
RCForkGuard gpr_guard = gpr.Fork();
|
||||
RCForkGuard fpr_guard = fpr.Fork();
|
||||
|
||||
gpr.Revert();
|
||||
fpr.Revert();
|
||||
|
||||
BitSet32 gprToFlush = BitSet32::AllTrue(32);
|
||||
BitSet32 fprToFlush = BitSet32::AllTrue(32);
|
||||
if (js.revertGprLoad >= 0)
|
||||
|
@ -930,6 +936,9 @@ u8* Jit64::DoJit(u32 em_address, JitBlock* b, u32 nextPC)
|
|||
SwitchToNearCode();
|
||||
}
|
||||
|
||||
gpr.Commit();
|
||||
fpr.Commit();
|
||||
|
||||
// If we have a register that will never be used again, flush it.
|
||||
for (int j : ~op.gprInUse)
|
||||
gpr.StoreFromRegister(j);
|
||||
|
|
Loading…
Add table
Reference in a new issue