mirror of https://github.com/RPCS3/rpcs3.git
Debugger: Implement SPU mailbox content display
This commit is contained in:
parent
56f95934f5
commit
e7ced1aeab
|
@ -5029,8 +5029,24 @@ void fmt_class_string<spu_channel_4_t>::format(std::string& out, u64 arg)
|
||||||
{
|
{
|
||||||
const auto& ch = get_object(arg);
|
const auto& ch = get_object(arg);
|
||||||
|
|
||||||
// TODO (use try_read)
|
u32 vals[4]{};
|
||||||
fmt::append(out, "count = %d", ch.get_count());
|
const uint count = ch.try_read(vals);
|
||||||
|
|
||||||
|
fmt::append(out, "count = %d, data:\n", count);
|
||||||
|
|
||||||
|
out += "{ ";
|
||||||
|
|
||||||
|
for (u32 i = 0; i < count;)
|
||||||
|
{
|
||||||
|
fmt::append(out, "0x%x", vals[i]);
|
||||||
|
|
||||||
|
if (++i != count)
|
||||||
|
{
|
||||||
|
out += ", ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
out += " }\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLARE(spu_thread::g_raw_spu_ctr){};
|
DECLARE(spu_thread::g_raw_spu_ctr){};
|
||||||
|
|
Loading…
Reference in New Issue