/[gxemul]/trunk/src/cpus/cpu_sparc.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_sparc.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_sparc.c,v 1.46 2007/06/07 15:36:24 debug Exp $   *  $Id: cpu_sparc.c,v 1.47 2007/06/28 13:36:47 debug Exp $
29   *   *
30   *  SPARC CPU emulation.   *  SPARC CPU emulation.
31   */   */
# Line 41  Line 41 
41  #include "misc.h"  #include "misc.h"
42  #include "settings.h"  #include "settings.h"
43  #include "symbol.h"  #include "symbol.h"
 #include "timer.h"  
44    
45    
46  #define DYNTRANS_DUALMODE_32  #define DYNTRANS_DUALMODE_32
# Line 49  Line 48 
48  #include "tmp_sparc_head.c"  #include "tmp_sparc_head.c"
49    
50    
 extern int native_code_translation_enabled;  
   
51  static char *sparc_regnames[N_SPARC_REG] = SPARC_REG_NAMES;  static char *sparc_regnames[N_SPARC_REG] = SPARC_REG_NAMES;
52  static char *sparc_pregnames[N_SPARC_PREG] = SPARC_PREG_NAMES;  static char *sparc_pregnames[N_SPARC_PREG] = SPARC_PREG_NAMES;
53  static char *sparc_regbranch_names[N_SPARC_REGBRANCH_TYPES] =  static char *sparc_regbranch_names[N_SPARC_REGBRANCH_TYPES] =
# Line 171  int sparc_cpu_new(struct cpu *cpu, struc Line 168  int sparc_cpu_new(struct cpu *cpu, struc
168                      cpu->cd.sparc.r[i]);                      cpu->cd.sparc.r[i]);
169          /*  TODO: Handler for writes to the zero register!  */          /*  TODO: Handler for writes to the zero register!  */
170    
         if (native_code_translation_enabled)  
                 cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ,  
                     sparc_timer_sample_tick, cpu);  
   
171          return 1;          return 1;
172  }  }
173    

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

  ViewVC Help
Powered by ViewVC 1.1.26