/[gxemul]/trunk/src/cpus/cpu_alpha.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_alpha.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_alpha.c,v 1.27 2007/06/07 15:36:24 debug Exp $   *  $Id: cpu_alpha.c,v 1.29 2007/06/28 13:36:46 debug Exp $
29   *   *
30   *  Alpha CPU emulation.   *  Alpha CPU emulation.
31   *   *
# Line 47  Line 47 
47  #include "misc.h"  #include "misc.h"
48  #include "settings.h"  #include "settings.h"
49  #include "symbol.h"  #include "symbol.h"
 #include "timer.h"  
50    
51  #define DYNTRANS_8K  #define DYNTRANS_8K
52  #define DYNTRANS_PAGESIZE       8192  #define DYNTRANS_PAGESIZE       8192
53  #include "tmp_alpha_head.c"  #include "tmp_alpha_head.c"
54    
55    
 extern int native_code_translation_enabled;  
   
56  /*  Alpha symbolic register names:  */  /*  Alpha symbolic register names:  */
57  static char *alpha_regname[N_ALPHA_REGS] = ALPHA_REG_NAMES;  static char *alpha_regname[N_ALPHA_REGS] = ALPHA_REG_NAMES;
58    
# Line 133  int alpha_cpu_new(struct cpu *cpu, struc Line 130  int alpha_cpu_new(struct cpu *cpu, struc
130                  interrupt_handler_register(&template);                  interrupt_handler_register(&template);
131          }          }
132    
         if (native_code_translation_enabled)  
                 cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ,  
                     alpha_timer_sample_tick, cpu);  
   
133          return 1;          return 1;
134  }  }
135    
# Line 679  int alpha_cpu_disassemble_instr(struct c Line 672  int alpha_cpu_disassemble_instr(struct c
672  #define MEMORY_RW       alpha_userland_memory_rw  #define MEMORY_RW       alpha_userland_memory_rw
673  #define MEM_ALPHA  #define MEM_ALPHA
674  #define MEM_USERLAND  #define MEM_USERLAND
675  #include "../memory_rw.c"  #include "memory_rw.c"
676  #undef MEM_USERLAND  #undef MEM_USERLAND
677  #undef MEM_ALPHA  #undef MEM_ALPHA
678  #undef MEMORY_RW  #undef MEMORY_RW

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

  ViewVC Help
Powered by ViewVC 1.1.26