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

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

revision 41 by dpavlin, Mon Oct 8 16:21:53 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_arm.c,v 1.68 2007/03/26 02:01:35 debug Exp $   *  $Id: cpu_arm.c,v 1.71 2007/06/15 00:41:21 debug Exp $
29   *   *
30   *  ARM CPU emulation.   *  ARM CPU emulation.
31   *   *
# Line 39  Line 39 
39  #include <stdlib.h>  #include <stdlib.h>
40  #include <string.h>  #include <string.h>
41  #include <ctype.h>  #include <ctype.h>
42    #include <unistd.h>
43    
44  #include "arm_cpu_types.h"  #include "arm_cpu_types.h"
45  #include "cpu.h"  #include "cpu.h"
# Line 49  Line 50 
50  #include "of.h"  #include "of.h"
51  #include "settings.h"  #include "settings.h"
52  #include "symbol.h"  #include "symbol.h"
53    #include "timer.h"
54    #include "useremul.h"
55    
56  #define DYNTRANS_32  #define DYNTRANS_32
57  #include "tmp_arm_head.c"  #include "tmp_arm_head.c"
58    
59    
60    extern int native_code_translation_enabled;
61    
62  /*  ARM symbolic register names and condition strings:  */  /*  ARM symbolic register names and condition strings:  */
63  static char *arm_regname[N_ARM_REGS] = ARM_REG_NAMES;  static char *arm_regname[N_ARM_REGS] = ARM_REG_NAMES;
64  static char *arm_condition_string[16] = ARM_CONDITION_STRINGS;  static char *arm_condition_string[16] = ARM_CONDITION_STRINGS;
# Line 190  int arm_cpu_new(struct cpu *cpu, struct Line 195  int arm_cpu_new(struct cpu *cpu, struct
195                  /*  FIQ: TODO  */                  /*  FIQ: TODO  */
196          }          }
197    
198            if (native_code_translation_enabled)
199                    cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ,
200                        arm_timer_sample_tick, cpu);
201    
202          return 1;          return 1;
203  }  }

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26