CPU: Compile fix for debug builds

This commit is contained in:
Connor McLaughlin 2021-01-04 23:41:19 +10:00
parent cc0c41eb11
commit e3262fc0a4
3 changed files with 2 additions and 3 deletions

View File

@ -886,7 +886,7 @@ ALWAYS_INLINE static TickCount DoEXP2Access(u32 offset, u32& value)
{
Log_InfoPrintf("TTY: %s", m_tty_line_buffer.c_str());
#ifdef _DEBUG
if (CPU::LOG_EXECUTION)
if (CPU::IsTraceEnabled())
CPU::WriteToExecutionLog("TTY: %s\n", m_tty_line_buffer.c_str());
#endif
}

View File

@ -248,7 +248,7 @@ void RaiseException(u32 CAUSE_bits, u32 EPC)
g_state.cop0_regs.EPC, g_state.cop0_regs.cause.BD ? "true" : "false",
g_state.cop0_regs.cause.CE.GetValue());
DisassembleAndPrint(g_state.current_instruction_pc, 4, 0);
if (LOG_EXECUTION)
if (s_trace_to_log)
{
CPU::WriteToExecutionLog("Exception %u at 0x%08X (epc=0x%08X, BD=%s, CE=%u)\n",
static_cast<u8>(g_state.cop0_regs.cause.Excode.GetValue()),

View File

@ -182,6 +182,5 @@ bool AddStepOverBreakpoint();
bool AddStepOutBreakpoint(u32 max_instructions_to_search = 1000);
extern bool TRACE_EXECUTION;
extern bool LOG_EXECUTION;
} // namespace CPU