1 |
/* |
/* |
2 |
* Copyright (C) 2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_m68k.c,v 1.3 2005/09/17 17:14:27 debug Exp $ |
* $Id: cpu_m68k.c,v 1.10 2006/06/16 18:31:25 debug Exp $ |
29 |
* |
* |
30 |
* Motorola 68K CPU emulation. |
* Motorola 68K CPU emulation. |
31 |
*/ |
*/ |
66 |
|
|
67 |
cpu->memory_rw = m68k_memory_rw; |
cpu->memory_rw = m68k_memory_rw; |
68 |
cpu->update_translation_table = m68k_update_translation_table; |
cpu->update_translation_table = m68k_update_translation_table; |
69 |
cpu->invalidate_translation_caches_paddr = |
cpu->invalidate_translation_caches = |
70 |
m68k_invalidate_translation_caches_paddr; |
m68k_invalidate_translation_caches; |
71 |
cpu->invalidate_code_translation = m68k_invalidate_code_translation; |
cpu->invalidate_code_translation = m68k_invalidate_code_translation; |
72 |
cpu->is_32bit = 1; |
cpu->is_32bit = 1; |
73 |
|
|
153 |
|
|
154 |
|
|
155 |
/* |
/* |
|
* m68k_cpu_show_full_statistics(): |
|
|
* |
|
|
* Show detailed statistics on opcode usage on each cpu. |
|
|
*/ |
|
|
void m68k_cpu_show_full_statistics(struct machine *m) |
|
|
{ |
|
|
fatal("m68k_cpu_show_full_statistics(): TODO\n"); |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
156 |
* m68k_cpu_tlbdump(): |
* m68k_cpu_tlbdump(): |
157 |
* |
* |
158 |
* Called from the debugger to dump the TLB in a readable format. |
* Called from the debugger to dump the TLB in a readable format. |
163 |
*/ |
*/ |
164 |
void m68k_cpu_tlbdump(struct machine *m, int x, int rawflag) |
void m68k_cpu_tlbdump(struct machine *m, int x, int rawflag) |
165 |
{ |
{ |
166 |
fatal("m68k_cpu_tlbdump(): TODO\n"); |
} |
167 |
|
|
168 |
|
|
169 |
|
/* |
170 |
|
* m68k_cpu_gdb_stub(): |
171 |
|
* |
172 |
|
* Execute a "remote GDB" command. Returns a newly allocated response string |
173 |
|
* on success, NULL on failure. |
174 |
|
*/ |
175 |
|
char *m68k_cpu_gdb_stub(struct cpu *cpu, char *cmd) |
176 |
|
{ |
177 |
|
fatal("m68k_cpu_gdb_stub(): TODO\n"); |
178 |
|
return NULL; |
179 |
} |
} |
180 |
|
|
181 |
|
|
219 |
* cpu->pc for relative addresses. |
* cpu->pc for relative addresses. |
220 |
*/ |
*/ |
221 |
int m68k_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib, |
int m68k_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib, |
222 |
int running, uint64_t dumpaddr, int bintrans) |
int running, uint64_t dumpaddr) |
223 |
{ |
{ |
224 |
uint64_t offset; |
uint64_t offset; |
225 |
int len = 0; |
int len = 0; |