rsx: Add some debugging information

This commit is contained in:
Eladash 2022-09-07 18:24:57 +03:00 committed by Ivan
parent 557d015662
commit 274386a078
2 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ u32 RSXDisAsm::disasm(u32 pc)
}
else
{
Write("?? ??", -1);
Write(fmt::format("?? ?? (0x%x)", m_op), -1);
}
return 4;
@ -103,7 +103,7 @@ u32 RSXDisAsm::disasm(u32 pc)
{
// Hack: 0 method with large count is unlikely to be a command
// But is very common in floating point args, messing up debugger's code-flow
Write("?? ??", -1);
Write(fmt::format("?? ?? (0x%x)", m_op), -1);
return 4;
}
@ -114,7 +114,7 @@ u32 RSXDisAsm::disasm(u32 pc)
if (!try_read_op(pc))
{
last_opcode.clear();
Write("?? ??", -1);
Write(fmt::format("?? ?? (0x%08x:unmapped)", m_op), -1);
return 4;
}
@ -123,7 +123,7 @@ u32 RSXDisAsm::disasm(u32 pc)
if (rsx::methods[id] == &rsx::invalid_method)
{
last_opcode.clear();
Write("?? ??", -1);
Write(fmt::format("?? ?? (0x%08x:method)", m_op), -1);
return 4;
}

View File

@ -691,7 +691,7 @@ namespace rsx
}
// If we reached here, this is likely an error
fmt::throw_exception("Unexpected command 0x%x", cmd);
fmt::throw_exception("Unexpected command 0x%x (last cmd: 0x%x)", cmd, fifo_ctrl->last_cmd());
}
if (const auto state = performance_counters.state;