mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 17:15:40 +00:00
CPU: Only write exceptions to log when logging
This commit is contained in:
parent
f46160ac46
commit
7b0978119b
|
@ -295,8 +295,11 @@ void Core::RaiseException(Exception excode, u32 EPC, bool BD, bool BT, u8 CE)
|
||||||
Log_DebugPrintf("Exception %u at 0x%08X (epc=0x%08X, BD=%s, CE=%u)", static_cast<u32>(excode),
|
Log_DebugPrintf("Exception %u at 0x%08X (epc=0x%08X, BD=%s, CE=%u)", static_cast<u32>(excode),
|
||||||
m_current_instruction_pc, EPC, BD ? "true" : "false", ZeroExtend32(CE));
|
m_current_instruction_pc, EPC, BD ? "true" : "false", ZeroExtend32(CE));
|
||||||
DisassembleAndPrint(m_current_instruction_pc, 4, 0);
|
DisassembleAndPrint(m_current_instruction_pc, 4, 0);
|
||||||
CPU::WriteToExecutionLog("Exception %u at 0x%08X (epc=0x%08X, BD=%s, CE=%u)\n", static_cast<u32>(excode),
|
if (LOG_EXECUTION)
|
||||||
m_current_instruction_pc, EPC, BD ? "true" : "false", ZeroExtend32(CE));
|
{
|
||||||
|
CPU::WriteToExecutionLog("Exception %u at 0x%08X (epc=0x%08X, BD=%s, CE=%u)\n", static_cast<u32>(excode),
|
||||||
|
m_current_instruction_pc, EPC, BD ? "true" : "false", ZeroExtend32(CE));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue