/[gxemul]/trunk/src/cpus/cpu_ppc.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_ppc.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_ppc.c,v 1.68 2007/03/26 02:01:36 debug Exp $   *  $Id: cpu_ppc.c,v 1.70 2007/06/15 00:41:21 debug Exp $
29   *   *
30   *  PowerPC/POWER CPU emulation.   *  PowerPC/POWER CPU emulation.
31   */   */
# Line 49  Line 49 
49  #include "ppc_spr_strings.h"  #include "ppc_spr_strings.h"
50  #include "settings.h"  #include "settings.h"
51  #include "symbol.h"  #include "symbol.h"
52    #include "timer.h"
53    #include "useremul.h"
54    
55    
56  #define DYNTRANS_DUALMODE_32  #define DYNTRANS_DUALMODE_32
57  #include "tmp_ppc_head.c"  #include "tmp_ppc_head.c"
58    
59    
60    extern int native_code_translation_enabled;
61    
62  void ppc_pc_to_pointers(struct cpu *);  void ppc_pc_to_pointers(struct cpu *);
63  void ppc32_pc_to_pointers(struct cpu *);  void ppc32_pc_to_pointers(struct cpu *);
64    
# Line 233  int ppc_cpu_new(struct cpu *cpu, struct Line 238  int ppc_cpu_new(struct cpu *cpu, struct
238                  interrupt_handler_register(&template);                  interrupt_handler_register(&template);
239          }          }
240    
241            if (native_code_translation_enabled)
242                    cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ,
243                        ppc_timer_sample_tick, cpu);
244    
245          return 1;          return 1;
246  }  }
247    

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

  ViewVC Help
Powered by ViewVC 1.1.26