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

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

revision 13 by dpavlin, Mon Oct 8 16:18:38 2007 UTC revision 14 by dpavlin, Mon Oct 8 16:18:51 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu.c,v 1.316 2005/08/16 05:37:09 debug Exp $   *  $Id: cpu.c,v 1.321 2005/10/03 01:07:40 debug Exp $
29   *   *
30   *  Common routines for CPU emulation. (Not specific to any CPU type.)   *  Common routines for CPU emulation. (Not specific to any CPU type.)
31   */   */
# Line 244  void cpu_functioncall_trace(struct cpu * Line 244  void cpu_functioncall_trace(struct cpu *
244                  fatal("cpu%i:\t", cpu->cpu_id);                  fatal("cpu%i:\t", cpu->cpu_id);
245    
246          cpu->trace_tree_depth ++;          cpu->trace_tree_depth ++;
247            if (cpu->trace_tree_depth > 100)
248                    cpu->trace_tree_depth = 100;
249          for (i=0; i<cpu->trace_tree_depth; i++)          for (i=0; i<cpu->trace_tree_depth; i++)
250                  fatal("  ");                  fatal("  ");
251    
# Line 307  void cpu_create_or_reset_tc(struct cpu * Line 309  void cpu_create_or_reset_tc(struct cpu *
309           *  There might be other translation pointers that still point to           *  There might be other translation pointers that still point to
310           *  within the translation_cache region. Let's invalidate those too:           *  within the translation_cache region. Let's invalidate those too:
311           */           */
312          if (cpu->invalidate_code_translation_caches != NULL)          if (cpu->invalidate_code_translation != NULL)
313                  cpu->invalidate_code_translation_caches(cpu);                  cpu->invalidate_code_translation(cpu, 0, INVALIDATE_ALL);
314  }  }
315    
316    
# Line 653  void cpu_init(void) Line 655  void cpu_init(void)
655          add_cpu_family(arm_cpu_family_init, ARCH_ARM);          add_cpu_family(arm_cpu_family_init, ARCH_ARM);
656  #endif  #endif
657    
658    #ifdef ENABLE_AVR
659            add_cpu_family(avr_cpu_family_init, ARCH_AVR);
660    #endif
661    
662    #ifdef ENABLE_HPPA
663            add_cpu_family(hppa_cpu_family_init, ARCH_HPPA);
664    #endif
665    
666    #ifdef ENABLE_I960
667            add_cpu_family(i960_cpu_family_init, ARCH_I960);
668    #endif
669    
670  #ifdef ENABLE_IA64  #ifdef ENABLE_IA64
671          add_cpu_family(ia64_cpu_family_init, ARCH_IA64);          add_cpu_family(ia64_cpu_family_init, ARCH_IA64);
672  #endif  #endif
# Line 669  void cpu_init(void) Line 683  void cpu_init(void)
683          add_cpu_family(ppc_cpu_family_init, ARCH_PPC);          add_cpu_family(ppc_cpu_family_init, ARCH_PPC);
684  #endif  #endif
685    
686    #ifdef ENABLE_SH
687            add_cpu_family(sh_cpu_family_init, ARCH_SH);
688    #endif
689    
690  #ifdef ENABLE_SPARC  #ifdef ENABLE_SPARC
691          add_cpu_family(sparc_cpu_family_init, ARCH_SPARC);          add_cpu_family(sparc_cpu_family_init, ARCH_SPARC);
692  #endif  #endif

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

  ViewVC Help
Powered by ViewVC 1.1.26