mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
SPU Debugger: Improve registers panel
This commit is contained in:
parent
a83df01bfd
commit
52fa69d93d
5 changed files with 106 additions and 13 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "PPUInterpreter.h"
|
||||
#include "PPUAnalyser.h"
|
||||
#include "PPUModule.h"
|
||||
#include "PPUDisAsm.h"
|
||||
#include "SPURecompiler.h"
|
||||
#include "lv2/sys_sync.h"
|
||||
#include "lv2/sys_prx.h"
|
||||
|
@ -482,7 +483,11 @@ std::string ppu_thread::dump_regs() const
|
|||
}
|
||||
else
|
||||
{
|
||||
fmt::append(ret, " -> function-code");
|
||||
PPUDisAsm dis_asm(CPUDisAsm_NormalMode);
|
||||
dis_asm.offset = vm::g_sudo_addr;
|
||||
dis_asm.dump_pc = reg;
|
||||
dis_asm.disasm(reg);
|
||||
fmt::append(ret, " -> %s", dis_asm.last_opcode);
|
||||
}
|
||||
}
|
||||
else if (std::isprint(static_cast<u8>(buf_tmp[0])) && std::isprint(static_cast<u8>(buf_tmp[1])) && std::isprint(static_cast<u8>(buf_tmp[2])))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue