CPU: Write exceptions to trace log

This commit is contained in:
Connor McLaughlin 2019-11-22 10:53:15 +10:00
parent 9e82afac7b
commit 330d512831

View File

@ -299,6 +299,8 @@ 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),
m_current_instruction_pc, EPC, BD ? "true" : "false", ZeroExtend32(CE));
} }
#endif #endif
@ -637,9 +639,8 @@ void Core::ExecuteInstruction()
const Instruction inst = m_current_instruction; const Instruction inst = m_current_instruction;
#if 0 #if 0
if (m_current_instruction_pc == 0xBFC06FF0) if (m_current_instruction_pc == 0x80010000)
{ {
//TRACE_EXECUTION = true;
LOG_EXECUTION = true; LOG_EXECUTION = true;
__debugbreak(); __debugbreak();
} }