mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
Merge pull request #7373 from lioncash/comment
JitInterface: Move explanatory comment of ClearSafe() to the function's prototype
This commit is contained in:
@ -211,10 +211,6 @@ void ClearCache()
|
|||||||
}
|
}
|
||||||
void ClearSafe()
|
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)
|
if (g_jit)
|
||||||
g_jit->GetBlockCache()->Clear();
|
g_jit->GetBlockCache()->Clear();
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,9 @@ bool HandleStackFault();
|
|||||||
// Clearing CodeCache
|
// Clearing CodeCache
|
||||||
void ClearCache();
|
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();
|
void ClearSafe();
|
||||||
|
|
||||||
// If "forced" is true, a recompile is being requested on code that hasn't been modified.
|
// If "forced" is true, a recompile is being requested on code that hasn't been modified.
|
||||||
|
Reference in New Issue
Block a user