Merge pull request #6704 from Tilka/warn_flush

Jit64: warn about code cache flushing
This commit is contained in:
Markus Wick 2018-05-05 15:31:35 +02:00 committed by GitHub
commit 70ca764a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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();
}