From bbf67ef544baba99175b7cd1cb3e3087801a8b17 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 29 Nov 2021 18:23:11 +1000 Subject: [PATCH] CPU: Warning fix --- src/core/cpu_core.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/cpu_core.cpp b/src/core/cpu_core.cpp index ce0867e62..ed1ed248d 100644 --- a/src/core/cpu_core.cpp +++ b/src/core/cpu_core.cpp @@ -539,6 +539,8 @@ ALWAYS_INLINE_RELEASE void Cop0DataBreakpointCheck(VirtualMemoryAddress address) DispatchCop0Breakpoint(); } +#ifdef _DEBUG + static void TracePrintInstruction() { const u32 pc = g_state.current_instruction_pc; @@ -559,6 +561,8 @@ static void TracePrintInstruction() std::printf("%08x: %08x %s\n", pc, bits, instr.GetCharArray()); } +#endif + static void PrintInstruction(u32 bits, u32 pc, Registers* regs, const char* prefix) { TinyString instr;