mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
RSX debugger: fix command count on non-method commands (#8578)
* RSX debugger: fix command count on non-method commands * fixup * constants and variables
This commit is contained in:
parent
ab3d36f0f3
commit
d6623e0f22
@ -611,16 +611,13 @@ void rsx_debugger::GetMemory()
|
||||
if (const u32 ea = rsx::get_current_renderer()->iomap_table.get_addr(addr);
|
||||
ea + 1)
|
||||
{
|
||||
u32 cmd = *vm::get_super_ptr<u32>(ea);
|
||||
u32 count = (cmd >> 18) & 0x7ff;
|
||||
const u32 cmd = *vm::get_super_ptr<u32>(ea);
|
||||
const u32 count = cmd & RSX_METHOD_NON_METHOD_CMD_MASK ? 0 : (cmd >> 18) & 0x7ff;
|
||||
|
||||
m_list_commands->setItem(i, 1, new QTableWidgetItem(qstr(fmt::format("%08x", cmd))));
|
||||
m_list_commands->setItem(i, 2, new QTableWidgetItem(DisAsmCommand(cmd, count, addr)));
|
||||
m_list_commands->setItem(i, 3, new QTableWidgetItem(QString::number(count)));
|
||||
|
||||
if(!(cmd & RSX_METHOD_NON_METHOD_CMD_MASK))
|
||||
{
|
||||
addr += 4 * count;
|
||||
}
|
||||
addr += 4 * count;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user