mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
SPU debugger: Implement blocking functions dumping
This commit is contained in:
parent
2e397e38a4
commit
ec1e82bc9d
2 changed files with 51 additions and 1 deletions
|
@ -619,6 +619,9 @@ public:
|
|||
|
||||
std::array<v128, 0x4000> stack_mirror; // Return address information
|
||||
|
||||
const char* current_func{}; // Current STOP or RDCH blocking function
|
||||
u64 start_time{}; // Starting time of STOP or RDCH bloking function
|
||||
|
||||
void push_snr(u32 number, u32 value);
|
||||
void do_dma_transfer(const spu_mfc_cmd& args);
|
||||
bool do_dma_check(const spu_mfc_cmd& args);
|
||||
|
@ -669,3 +672,16 @@ public:
|
|||
return -1;
|
||||
}
|
||||
};
|
||||
|
||||
class spu_function_logger
|
||||
{
|
||||
spu_thread& spu;
|
||||
|
||||
public:
|
||||
spu_function_logger(spu_thread& spu, const char* func);
|
||||
|
||||
~spu_function_logger()
|
||||
{
|
||||
spu.start_time = 0;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue