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

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

revision 27 by dpavlin, Mon Oct 8 16:19:56 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_avr.c,v 1.18 2006/06/16 18:31:25 debug Exp $   *  $Id: cpu_avr.c,v 1.20 2006/07/16 13:32:26 debug Exp $
29   *   *
30   *  Atmel AVR (8-bit) CPU emulation.   *  Atmel AVR (8-bit) CPU emulation.
31   */   */
# Line 71  int avr_cpu_new(struct cpu *cpu, struct Line 71  int avr_cpu_new(struct cpu *cpu, struct
71          if (type == 0)          if (type == 0)
72                  return 0;                  return 0;
73    
74            cpu->run_instr = avr_run_instr;
75          cpu->memory_rw = avr_memory_rw;          cpu->memory_rw = avr_memory_rw;
76          cpu->update_translation_table = avr_update_translation_table;          cpu->update_translation_table = avr_update_translation_table;
77          cpu->invalidate_translation_caches =          cpu->invalidate_translation_caches =
# Line 167  void avr_cpu_register_dump(struct cpu *c Line 168  void avr_cpu_register_dump(struct cpu *c
168          }          }
169    
170          debug("cpu%i: nr of instructions: %lli\n", x,          debug("cpu%i: nr of instructions: %lli\n", x,
171              (long long)cpu->machine->ncycles);              (long long)cpu->machine->ninstrs);
172          debug("cpu%i: nr of cycles:       %lli\n", x,          debug("cpu%i: nr of cycles:       %lli\n", x,
173              (long long)(cpu->machine->ncycles + cpu->cd.avr.extra_cycles));              (long long)(cpu->machine->ninstrs + cpu->cd.avr.extra_cycles));
174  }  }
175    
176    

Legend:
Removed from v.27  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26