25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_avr.c,v 1.4 2005/09/17 22:34:52 debug Exp $ |
* $Id: cpu_avr.c,v 1.7 2005/11/13 00:14:07 debug Exp $ |
29 |
* |
* |
30 |
* Atmel AVR (8-bit) CPU emulation. |
* Atmel AVR (8-bit) CPU emulation. |
31 |
*/ |
*/ |
43 |
|
|
44 |
|
|
45 |
#define DYNTRANS_32 |
#define DYNTRANS_32 |
46 |
|
#define DYNTRANS_VARIABLE_INSTRUCTION_LENGTH |
47 |
#include "tmp_avr_head.c" |
#include "tmp_avr_head.c" |
48 |
|
|
49 |
|
|
63 |
|
|
64 |
cpu->memory_rw = avr_memory_rw; |
cpu->memory_rw = avr_memory_rw; |
65 |
cpu->update_translation_table = avr_update_translation_table; |
cpu->update_translation_table = avr_update_translation_table; |
66 |
cpu->invalidate_translation_caches_paddr = |
cpu->invalidate_translation_caches = |
67 |
avr_invalidate_translation_caches_paddr; |
avr_invalidate_translation_caches; |
68 |
cpu->invalidate_code_translation = avr_invalidate_code_translation; |
cpu->invalidate_code_translation = avr_invalidate_code_translation; |
69 |
cpu->is_32bit = 1; |
cpu->is_32bit = 1; |
70 |
|
|
179 |
} |
} |
180 |
|
|
181 |
|
|
|
/* |
|
|
* avr_cpu_show_full_statistics(): |
|
|
* |
|
|
* Show detailed statistics on opcode usage on each cpu. |
|
|
*/ |
|
|
void avr_cpu_show_full_statistics(struct machine *m) |
|
|
{ |
|
|
fatal("avr_cpu_show_full_statistics(): TODO\n"); |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
* avr_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 avr_cpu_tlbdump(struct machine *m, int x, int rawflag) |
|
|
{ |
|
|
fatal("avr_cpu_tlbdump(): TODO\n"); |
|
|
} |
|
|
|
|
|
|
|
182 |
/* |
/* |
183 |
* avr_cpu_interrupt(): |
* avr_cpu_interrupt(): |
184 |
*/ |
*/ |