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 |
*/ |
*/ |
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 = |
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 |
|
|