From 201be8aa9c740b67a511f7ce150757370f1c3ca1 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 23 Nov 2019 19:49:43 +1000 Subject: [PATCH] CPU: Fix interpreter speed regression from recompiler Seems the logging prevented ExecuteInstruction() from being inlined. --- src/core/cpu_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/cpu_core.cpp b/src/core/cpu_core.cpp index 625c67ee3..405a69543 100644 --- a/src/core/cpu_core.cpp +++ b/src/core/cpu_core.cpp @@ -645,12 +645,12 @@ void Core::ExecuteInstruction() } #endif - //#ifdef _DEBUG +#ifdef _DEBUG if (TRACE_EXECUTION) PrintInstruction(inst.bits, m_current_instruction_pc, this); if (LOG_EXECUTION) LogInstruction(inst.bits, m_current_instruction_pc, this); - //#endif +#endif switch (inst.op) {