309 |
if (delay_slot != 2) |
if (delay_slot != 2) |
310 |
block->mips_trans_pos++; |
block->mips_trans_pos++; |
311 |
|
|
312 |
#if DEBUG_PERF_COUNTER |
#if DEBUG_INSN_PERF_CNT |
313 |
mips64_inc_perf_counter(block); |
mips64_inc_perf_counter(block); |
314 |
#endif |
#endif |
315 |
|
|
680 |
if (pthread_create(&timer_irq_thread,NULL, |
if (pthread_create(&timer_irq_thread,NULL, |
681 |
(void *)mips64_timer_irq_run,cpu)) |
(void *)mips64_timer_irq_run,cpu)) |
682 |
{ |
{ |
683 |
fprintf(stderr,"VM '%s': unable to create Timer IRQ thread for CPU%u.\n", |
fprintf(stderr, |
684 |
|
"VM '%s': unable to create Timer IRQ thread for CPU%u.\n", |
685 |
cpu->vm->name,cpu->id); |
cpu->vm->name,cpu->id); |
686 |
cpu_stop(cpu); |
cpu_stop(cpu); |
687 |
return NULL; |
return NULL; |
696 |
if (unlikely(cpu->state != MIPS_CPU_RUNNING)) |
if (unlikely(cpu->state != MIPS_CPU_RUNNING)) |
697 |
break; |
break; |
698 |
|
|
699 |
|
#if DEBUG_BLOCK_PERF_CNT |
700 |
|
cpu->perf_counter++; |
701 |
|
#endif |
702 |
/* Handle virtual idle loop */ |
/* Handle virtual idle loop */ |
703 |
if (unlikely(cpu->pc == cpu->idle_pc)) { |
if (unlikely(cpu->pc == cpu->idle_pc)) { |
704 |
if (++cpu->idle_count == cpu->idle_max) { |
if (++cpu->idle_count == cpu->idle_max) { |