Permalink
Browse files

Merge pull request #7373 from lioncash/comment

JitInterface: Move explanatory comment of ClearSafe() to the function's prototype
  • Loading branch information...
delroth committed Aug 27, 2018
2 parents 307d5d5 + d40022d commit c3ed39caef0bef934990c506c807c9024ce2e1ed
Showing with 3 additions and 4 deletions.
  1. +0 −4 Source/Core/Core/PowerPC/JitInterface.cpp
  2. +3 −0 Source/Core/Core/PowerPC/JitInterface.h
@@ -211,10 +211,6 @@ void ClearCache()
}
void ClearSafe()
{
// This clear is "safe" in the sense that it's okay to run from
// inside a JIT'ed block: it clears the instruction cache, but not
// the JIT'ed code.
// TODO: There's probably a better way to handle this situation.
if (g_jit)
g_jit->GetBlockCache()->Clear();
}
@@ -55,6 +55,9 @@ bool HandleStackFault();
// Clearing CodeCache
void ClearCache();
// This clear is "safe" in the sense that it's okay to run from
// inside a JIT'ed block: it clears the instruction cache, but not
// the JIT'ed code.
void ClearSafe();
// If "forced" is true, a recompile is being requested on code that hasn't been modified.

0 comments on commit c3ed39c

Please sign in to comment.