/[gxemul]/trunk/src/cpus/cpu_mips.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/src/cpus/cpu_mips.c

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

revision 43 by dpavlin, Mon Oct 8 16:22:32 2007 UTC revision 44 by dpavlin, Mon Oct 8 16:22:56 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_mips.c,v 1.83 2007/06/15 18:07:08 debug Exp $   *  $Id: cpu_mips.c,v 1.84 2007/06/28 13:36:46 debug Exp $
29   *   *
30   *  MIPS core CPU emulation.   *  MIPS core CPU emulation.
31   */   */
# Line 52  Line 52 
52  #include "opcodes_mips.h"  #include "opcodes_mips.h"
53  #include "settings.h"  #include "settings.h"
54  #include "symbol.h"  #include "symbol.h"
 #include "timer.h"  
55    
56    
 extern int native_code_translation_enabled;  
   
57  static char *exception_names[] = EXCEPTION_NAMES;  static char *exception_names[] = EXCEPTION_NAMES;
58    
59  static char *hi6_names[] = HI6_NAMES;  static char *hi6_names[] = HI6_NAMES;
# Line 337  int mips_cpu_new(struct cpu *cpu, struct Line 334  int mips_cpu_new(struct cpu *cpu, struct
334                  CPU_SETTINGS_ADD_REGISTER64(cop0_names[i],                  CPU_SETTINGS_ADD_REGISTER64(cop0_names[i],
335                      cpu->cd.mips.coproc[0]->reg[i]);                      cpu->cd.mips.coproc[0]->reg[i]);
336    
         if (native_code_translation_enabled)  
                 cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ,  
                     mips_timer_sample_tick, cpu);  
   
337          return 1;          return 1;
338  }  }
339    

Legend:
Removed from v.43  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.26