--- upstream/dynamips-0.2.6-RC2/mips64_jit.c 2007/10/06 16:05:34 3 +++ upstream/dynamips-0.2.6-RC5/mips64_jit.c 2007/10/06 16:09:07 6 @@ -309,7 +309,7 @@ if (delay_slot != 2) block->mips_trans_pos++; -#if DEBUG_PERF_COUNTER +#if DEBUG_INSN_PERF_CNT mips64_inc_perf_counter(block); #endif @@ -680,7 +680,8 @@ if (pthread_create(&timer_irq_thread,NULL, (void *)mips64_timer_irq_run,cpu)) { - fprintf(stderr,"VM '%s': unable to create Timer IRQ thread for CPU%u.\n", + fprintf(stderr, + "VM '%s': unable to create Timer IRQ thread for CPU%u.\n", cpu->vm->name,cpu->id); cpu_stop(cpu); return NULL; @@ -695,6 +696,9 @@ if (unlikely(cpu->state != MIPS_CPU_RUNNING)) break; +#if DEBUG_BLOCK_PERF_CNT + cpu->perf_counter++; +#endif /* Handle virtual idle loop */ if (unlikely(cpu->pc == cpu->idle_pc)) { if (++cpu->idle_count == cpu->idle_max) {