mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-15 22:21:25 +00:00
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);
|
||||
|
||||
// TODO (use try_read)
|
||||
fmt::append(out, "count = %d", ch.get_count());
|
||||
u32 vals[4]{};
|
||||
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){};
|
||||
|
Loading…
x
Reference in New Issue
Block a user