JIT: get rid of useless code in JitCache.cpp.
This commit is contained in:
1 parent
440246a190
commit
6bb08de8a0
3 files changed
+6
-24
No files matched your search
@@ -39,7 +39,7 @@ namespace JitInterface
|
||||
void DoState(PointerWrap &p)
|
||||
{
|
||||
if (jit && p.GetMode() == PointerWrap::MODE_READ)
|
||||
jit->GetBlockCache()->ClearSafe();
|
||||
jit->GetBlockCache()->Clear();
|
||||
}
|
||||
CPUCoreBase *InitJitCore(int core)
|
||||
{
|
||||
@@ -199,8 +199,12 @@ namespace JitInterface
|
||||
}
|
||||
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 (jit)
|
||||
jit->GetBlockCache()->ClearSafe();
|
||||
jit->GetBlockCache()->Clear();
|
||||
}
|
||||
|
||||
void InvalidateICache(u32 address, u32 size)
|
||||
|
||||
Reference in new issue
Block a user