Memoize and print r3-r6 under Current function in the ppu_thread::dump()

This commit is contained in:
Nekotekina 2020-03-22 12:23:58 +03:00
parent 7d33ca7059
commit e606130262
3 changed files with 5 additions and 3 deletions

View file

@ -432,7 +432,9 @@ std::string ppu_thread::dump() const
ret += "Current function: ";
ret += _func;
ret += '\n';
fmt::append(ret, "syscall r3: 0x%llx\n", syscall_r3);
for (u32 i = 3; i <= 6; i++)
fmt::append(ret, " ** GPR[%d] = 0x%llx\n", i, syscall_args[i - 3]);
}
else if (is_paused())
{