mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Debugger: Implement SPU mailbox content display
This commit is contained in:
parent
56f95934f5
commit
e7ced1aeab
1 changed files with 18 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue