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

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

revision 19 by dpavlin, Mon Oct 8 16:19:11 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_sparc.c,v 1.2 2005/10/22 17:24:21 debug Exp $   *  $Id: cpu_sparc.c,v 1.4 2005/11/13 00:14:07 debug Exp $
29   *   *
30   *  SPARC CPU emulation.   *  SPARC CPU emulation.
31   */   */
# Line 112  void sparc_cpu_dumpinfo(struct cpu *cpu) Line 112  void sparc_cpu_dumpinfo(struct cpu *cpu)
112  void sparc_cpu_register_dump(struct cpu *cpu, int gprs, int coprocs)  void sparc_cpu_register_dump(struct cpu *cpu, int gprs, int coprocs)
113  {  {
114          char *symbol;          char *symbol;
115          uint64_t offset, tmp;          uint64_t offset;
116          int i, x = cpu->cpu_id;          int x = cpu->cpu_id;
117          int bits32 = 0;          int bits32 = 0;
118    
119          if (gprs) {          if (gprs) {
# Line 157  void sparc_cpu_register_match(struct mac Line 157  void sparc_cpu_register_match(struct mac
157    
158    
159  /*  /*
  *  sparc_cpu_show_full_statistics():  
  *  
  *  Show detailed statistics on opcode usage on each cpu.  
  */  
 void sparc_cpu_show_full_statistics(struct machine *m)  
 {  
         fatal("sparc_cpu_show_full_statistics(): TODO\n");  
 }  
   
   
 /*  
  *  sparc_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 sparc_cpu_tlbdump(struct machine *m, int x, int rawflag)  
 {  
         fatal("sparc_cpu_tlbdump(): TODO\n");  
 }  
   
   
 /*  
160   *  sparc_cpu_interrupt():   *  sparc_cpu_interrupt():
161   */   */
162  int sparc_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr)  int sparc_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr)
# Line 217  int sparc_cpu_interrupt_ack(struct cpu * Line 191  int sparc_cpu_interrupt_ack(struct cpu *
191  int sparc_cpu_disassemble_instr(struct cpu *cpu, unsigned char *instr,  int sparc_cpu_disassemble_instr(struct cpu *cpu, unsigned char *instr,
192          int running, uint64_t dumpaddr, int bintrans)          int running, uint64_t dumpaddr, int bintrans)
193  {  {
194          uint64_t offset, addr;          uint64_t offset;
195          uint32_t iword;          uint32_t iword;
196          int hi6;          int hi6;
197          char *symbol, *mnem = "ERROR";          char *symbol;
198    
199          if (running)          if (running)
200                  dumpaddr = cpu->pc;                  dumpaddr = cpu->pc;

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

  ViewVC Help
Powered by ViewVC 1.1.26