summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2018-05-05 15:31:35 +0200
committerGitHub <noreply@github.com>2018-05-05 15:31:35 +0200
commit70ca764a8848734d8befc1aea5e71b34bc3fc915 (patch)
treefdeb119793c51ab4b9c5d2edf3e7698420b2ec00 /Source/Core
parentec37857094afe474d1235bf4a5b4c540ac3bfd30 (diff)
parent41a553e33ea7e83e44a1c4633d9a5aec0c65e115 (diff)
Merge pull request #6704 from Tilka/warn_flush
Jit64: warn about code cache flushing
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/Jit64/Jit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp
index 4c4ae55c42..06a8a5a735 100644
--- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp
+++ b/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();
}