mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
kernel-explorer: Implement PPU scheduler state information
This commit is contained in:
parent
a7d0c4fb1e
commit
dcfd29c2d9
6 changed files with 84 additions and 14 deletions
|
|
@ -97,6 +97,27 @@ void fmt_class_string<ppu_join_status>::format(std::string& out, u64 arg)
|
|||
});
|
||||
}
|
||||
|
||||
template <>
|
||||
void fmt_class_string<ppu_thread_status>::format(std::string& out, u64 arg)
|
||||
{
|
||||
format_enum(out, arg, [](ppu_thread_status s)
|
||||
{
|
||||
switch (s)
|
||||
{
|
||||
case PPU_THREAD_STATUS_IDLE: return "IDLE";
|
||||
case PPU_THREAD_STATUS_RUNNABLE: return "RUN";
|
||||
case PPU_THREAD_STATUS_ONPROC: return "ONPROC";
|
||||
case PPU_THREAD_STATUS_SLEEP: return "SLEEP";
|
||||
case PPU_THREAD_STATUS_STOP: return "STOP";
|
||||
case PPU_THREAD_STATUS_ZOMBIE: return "Zombie";
|
||||
case PPU_THREAD_STATUS_DELETED: return "Deleted";
|
||||
case PPU_THREAD_STATUS_UNKNOWN: break;
|
||||
}
|
||||
|
||||
return unknown;
|
||||
});
|
||||
}
|
||||
|
||||
const ppu_decoder<ppu_interpreter_precise> g_ppu_interpreter_precise;
|
||||
const ppu_decoder<ppu_interpreter_fast> g_ppu_interpreter_fast;
|
||||
const ppu_decoder<ppu_itype> g_ppu_itype;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue