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 |
*/ |
*/ |
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) { |
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) |
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; |