Make spu_mfc_cmd fmt properly show stalled commands

This commit is contained in:
Eladash 2020-04-29 07:46:50 +03:00
parent 0db91aa56b
commit 69f82a7311
1 changed files with 3 additions and 1 deletions

View File

@ -62,5 +62,7 @@ void fmt_class_string<spu_mfc_cmd>::format(std::string& out, u64 arg)
{
const auto& cmd = get_object(arg);
fmt::append(out, "%s #%02u 0x%05x:0x%08x 0x%x", cmd.cmd, cmd.tag, cmd.lsa, cmd.eah * 0x100000000ull + cmd.eal, cmd.size);
const u8 tag = cmd.tag;
fmt::append(out, "%s #%02u 0x%05x:0x%08llx 0x%x%s", cmd.cmd, tag & 0x7f, cmd.lsa, u64{cmd.eah} << 32 | cmd.eal, cmd.size, (tag & 0x80) ? " (stalled)" : "");
}