SPU debugger: Implement blocking functions dumping

This commit is contained in:
Eladash 2020-04-13 21:53:19 +03:00 committed by Ivan
parent 2e397e38a4
commit ec1e82bc9d
2 changed files with 51 additions and 1 deletions

View file

@ -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;
}
};