Permalink
Browse files

Jit: memcheck

  • Loading branch information...
MerryMage committed Oct 15, 2018
1 parent c896d41 commit 00d65f7a694c982cfde94d37f9b7e2a6b603caa5
Showing with 9 additions and 0 deletions.
  1. +9 −0 Source/Core/Core/PowerPC/Jit64/Jit.cpp
@@ -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);

0 comments on commit 00d65f7

Please sign in to comment.