Permalink
Browse files

Merge pull request #6704 from Tilka/warn_flush

Jit64: warn about code cache flushing
  • Loading branch information...
degasus committed May 5, 2018
2 parents ec37857 + 41a553e commit 70ca764a8848734d8befc1aea5e71b34bc3fc915
Showing with 6 additions and 0 deletions.
  1. +6 −0 Source/Core/Core/PowerPC/Jit64/Jit.cpp
@@ -584,6 +584,12 @@ void Jit64::Jit(u32 em_address)
if (IsAlmostFull() || m_far_code.IsAlmostFull() || trampolines.IsAlmostFull() ||
SConfig::GetInstance().bJITNoBlockCache)
{
if (!SConfig::GetInstance().bJITNoBlockCache)
{
const auto reason =
IsAlmostFull() ? "main" : m_far_code.IsAlmostFull() ? "far" : "trampoline";
WARN_LOG(POWERPC, "flushing %s code cache, please report if this happens a lot", reason);
}
ClearCache();
}

0 comments on commit 70ca764

Please sign in to comment.