Hi everybody!
I'm having a problem with the psp hardware profiler. If I call any of these functions:
pspDebugProfilerClear, pspDebugProfilerEnable, pspDebugProfilerDisable
The PSP crashes with some load/store exception.
I've put just a pspDebugProfilerClear which should'n give any problem (it just erases the counters) and it crashes!
Anyone knows why? Maybe I should call those functions in kernel mode or something like that?
Thanks in advance!
David
PSP Hardware Profiler
Yes those functions can only be used in kernel mode. If you are using psplink you can set user profiling mode (assuming it still works on new firmwares) by using the profmode command (use "profmode t" to set single thread mode, it will context switch the regs, or "profmode g" to set global mode). Then access the regs through sceKernelReferThreadProfiler or sceKernelReferGlobalProfiler functions respectively.