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

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

revision 14 by dpavlin, Mon Oct 8 16:18:51 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_sh.c,v 1.6 2005/09/04 14:38:17 debug Exp $   *  $Id: cpu_sh.c,v 1.8 2005/11/13 00:14:07 debug Exp $
29   *   *
30   *  Hitachi SuperH ("SH") CPU emulation.   *  Hitachi SuperH ("SH") CPU emulation.
31   *   *
# Line 72  int sh_cpu_new(struct cpu *cpu, struct m Line 72  int sh_cpu_new(struct cpu *cpu, struct m
72    
73          if (cpu->is_32bit) {          if (cpu->is_32bit) {
74                  cpu->update_translation_table = sh32_update_translation_table;                  cpu->update_translation_table = sh32_update_translation_table;
75                  cpu->invalidate_translation_caches_paddr =                  cpu->invalidate_translation_caches =
76                      sh32_invalidate_translation_caches_paddr;                      sh32_invalidate_translation_caches;
77                  cpu->invalidate_code_translation =                  cpu->invalidate_code_translation =
78                      sh32_invalidate_code_translation;                      sh32_invalidate_code_translation;
79          } else {          } else {
80                  cpu->update_translation_table = sh_update_translation_table;                  cpu->update_translation_table = sh_update_translation_table;
81                  cpu->invalidate_translation_caches_paddr =                  cpu->invalidate_translation_caches =
82                      sh_invalidate_translation_caches_paddr;                      sh_invalidate_translation_caches;
83                  cpu->invalidate_code_translation =                  cpu->invalidate_code_translation =
84                      sh_invalidate_code_translation;                      sh_invalidate_code_translation;
85          }          }
# Line 191  void sh_cpu_register_match(struct machin Line 191  void sh_cpu_register_match(struct machin
191  }  }
192    
193    
 /*  
  *  sh_cpu_show_full_statistics():  
  *  
  *  Show detailed statistics on opcode usage on each cpu.  
  */  
 void sh_cpu_show_full_statistics(struct machine *m)  
 {  
         fatal("sh_cpu_show_full_statistics(): TODO\n");  
 }  
   
   
 /*  
  *  sh_cpu_tlbdump():  
  *  
  *  Called from the debugger to dump the TLB in a readable format.  
  *  x is the cpu number to dump, or -1 to dump all CPUs.  
  *  
  *  If rawflag is nonzero, then the TLB contents isn't formated nicely,  
  *  just dumped.  
  */  
 void sh_cpu_tlbdump(struct machine *m, int x, int rawflag)  
 {  
         fatal("sh_cpu_tlbdump(): TODO\n");  
 }  
   
   
194  /*  /*
195   *  sh_cpu_interrupt():   *  sh_cpu_interrupt():
196   */   */

Legend:
Removed from v.14  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26