/[dynamips]/trunk/mips64_jit.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/mips64_jit.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.6-RC1/mips64_jit.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.6-RC2/mips64_jit.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC
# Line 675  void *insn_block_execute(cpu_mips_t *cpu Line 675  void *insn_block_execute(cpu_mips_t *cpu
675     pthread_t timer_irq_thread;     pthread_t timer_irq_thread;
676     insn_block_t *block;     insn_block_t *block;
677     m_uint32_t phys_page;     m_uint32_t phys_page;
    int idle_count = 0;  
678     int timer_irq_check = 0;     int timer_irq_check = 0;
679    
680     if (pthread_create(&timer_irq_thread,NULL,     if (pthread_create(&timer_irq_thread,NULL,
# Line 688  void *insn_block_execute(cpu_mips_t *cpu Line 687  void *insn_block_execute(cpu_mips_t *cpu
687     }     }
688    
689     cpu->cpu_thread_running = TRUE;     cpu->cpu_thread_running = TRUE;
690    
691   start_cpu:     start_cpu:  
692       cpu->idle_count = 0;
693    
694     for(;;) {     for(;;) {
695        if (unlikely(cpu->state != MIPS_CPU_RUNNING))        if (unlikely(cpu->state != MIPS_CPU_RUNNING))
696           break;           break;
697    
698        /* Handle virtual idle loop */        /* Handle virtual idle loop */
699        if (unlikely(cpu->pc == cpu->idle_pc)) {        if (unlikely(cpu->pc == cpu->idle_pc)) {
700           if (++idle_count == cpu->idle_max) {           if (++cpu->idle_count == cpu->idle_max) {
701              mips64_idle_loop(cpu);              mips64_idle_loop(cpu);
702              idle_count = 0;              cpu->idle_count = 0;
703           }           }
704        }        }
705    

Legend:
Removed from v.2  
changed lines
  Added in v.3

  ViewVC Help
Powered by ViewVC 1.1.26