mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-12 02:09:17 +00:00
Fix RSX Debugger
This commit is contained in:
@@ -1270,8 +1270,8 @@ u32 cpu_thread::get_pc() const
|
||||
}
|
||||
case thread_class::rsx:
|
||||
{
|
||||
const auto ctrl = static_cast<const rsx::thread*>(this)->ctrl;
|
||||
return ctrl ? ctrl->get.load() : umax;
|
||||
const auto& ctrl = static_cast<const rsx::thread*>(this)->fifo_ctrl;
|
||||
return ctrl ? ctrl->get_pos() : umax;
|
||||
}
|
||||
default: break;
|
||||
}
|
||||
|
||||
@@ -3109,9 +3109,9 @@ namespace rsx
|
||||
|
||||
void thread::dump_regs(std::string& result, std::any& /*custom_data*/) const
|
||||
{
|
||||
if (ctrl)
|
||||
if (ctrl && fifo_ctrl)
|
||||
{
|
||||
fmt::append(result, "FIFO: GET=0x%07x, PUT=0x%07x, REF=0x%08x\n", +ctrl->get, +ctrl->put, +ctrl->ref);
|
||||
fmt::append(result, "FIFO: EXEC=0x%x, GET=0x%07x, PUT=0x%07x, REF=0x%08x\n", fifo_ctrl->get_pos(), +ctrl->get, +ctrl->put, +ctrl->ref);
|
||||
fmt::append(result, "FIFO: RET-ADDR=0x%x, Code=0x%x, Jump=0x%x\n", fifo_ret_addr, last_known_code_start, last_code_jump);
|
||||
fmt::append(result, "FIFO: Semaphore Acquire: pos=0x%x, address=0x%x\n", last_sema_cmd, last_sema_addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user