Rework PPC CPU profiler.

This commit is contained in:
Maxim Poliakovski
2021-04-29 02:26:17 +02:00
parent 0c1c59ffa7
commit 6f9ee10de5
5 changed files with 221 additions and 43 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ jmp_buf exc_env; /* Global exception environment. */
[[noreturn]] void ppc_exception_handler(Except_Type exception_type, uint32_t srr1_bits) {
grab_exception = true;
#ifdef PROFILER
exceptions_performed++;
#ifdef CPU_PROFILING
exceptions_processed++;
#endif
bb_kind = BB_end_kind::BB_EXCEPTION;