Skip to content

Commit

Permalink
Merge pull request #2811 from Sonicadvance1/interpreter_dump
Browse files Browse the repository at this point in the history
On unknown_instruction dump the full guest GPR state.
  • Loading branch information
lioncash committed Aug 8, 2015
2 parents 93e8ba8 + 0326bf7 commit a488ab7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp
Expand Up @@ -287,7 +287,14 @@ void Interpreter::unknown_instruction(UGeckoInstruction _inst)
std::string disasm = GekkoDisassembler::Disassemble(PowerPC::HostRead_U32(last_pc), last_pc);
NOTICE_LOG(POWERPC, "Last PC = %08x : %s", last_pc, disasm.c_str());
Dolphin_Debugger::PrintCallstack();
_assert_msg_(POWERPC, 0, "\nIntCPU: Unknown instruction %08x at PC = %08x last_PC = %08x LR = %08x\n", _inst.hex, PC, last_pc, LR);
NOTICE_LOG(POWERPC, "\nIntCPU: Unknown instruction %08x at PC = %08x last_PC = %08x LR = %08x\n", _inst.hex, PC, last_pc, LR);
for (int i = 0; i < 32; i += 4)
NOTICE_LOG(POWERPC, "r%d: 0x%08x r%d: 0x%08x r%d:0x%08x r%d: 0x%08x",
i, rGPR[i],
i + 1, rGPR[i + 1],
i + 2, rGPR[i + 2],
i + 3, rGPR[i + 3]);
assert(0);
}

void Interpreter::ClearCache()
Expand Down

0 comments on commit a488ab7

Please sign in to comment.