From 69f82a731126b95bc26b6516b7cfaf0a8deb5241 Mon Sep 17 00:00:00 2001 From: Eladash Date: Wed, 29 Apr 2020 07:46:50 +0300 Subject: [PATCH] Make spu_mfc_cmd fmt properly show stalled commands --- rpcs3/Emu/Cell/MFC.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/MFC.cpp b/rpcs3/Emu/Cell/MFC.cpp index bc1e513653..54ca31f3a7 100644 --- a/rpcs3/Emu/Cell/MFC.cpp +++ b/rpcs3/Emu/Cell/MFC.cpp @@ -62,5 +62,7 @@ void fmt_class_string::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)" : ""); }