/[gxemul]/trunk/src/cpus/cpu_m88k.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_m88k.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_m88k.c,v 1.38 2007/06/07 15:36:24 debug Exp $   *  $Id: cpu_m88k.c,v 1.39 2007/06/28 13:36:46 debug Exp $
29   *   *
30   *  Motorola M881x0 CPU emulation.   *  Motorola M881x0 CPU emulation.
31   */   */
# Line 43  Line 43 
43  #include "mvmeprom.h"  #include "mvmeprom.h"
44  #include "settings.h"  #include "settings.h"
45  #include "symbol.h"  #include "symbol.h"
 #include "timer.h"  
46    
47  #include "m8820x_pte.h"  #include "m8820x_pte.h"
48  #include "m88k_dmt.h"  #include "m88k_dmt.h"
# Line 53  Line 52 
52  #include "tmp_m88k_head.c"  #include "tmp_m88k_head.c"
53    
54    
 extern int native_code_translation_enabled;  
   
55  void m88k_pc_to_pointers(struct cpu *);  void m88k_pc_to_pointers(struct cpu *);
56    
57  static char *memop[4] = { ".d", "", ".h", ".b" };  static char *memop[4] = { ".d", "", ".h", ".b" };
# Line 183  int m88k_cpu_new(struct cpu *cpu, struct Line 180  int m88k_cpu_new(struct cpu *cpu, struct
180          /*  Initial stack pointer:  */          /*  Initial stack pointer:  */
181          cpu->cd.m88k.r[31] = 1048576 * cpu->machine->physical_ram_in_mb - 1024;          cpu->cd.m88k.r[31] = 1048576 * cpu->machine->physical_ram_in_mb - 1024;
182    
         if (native_code_translation_enabled)  
                 cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ,  
                     m88k_timer_sample_tick, cpu);  
   
183          return 1;          return 1;
184  }  }
185    

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

  ViewVC Help
Powered by ViewVC 1.1.26