--- trunk/src/cpus/cpu_sparc.c 2007/10/08 16:19:16 19 +++ trunk/src/cpus/cpu_sparc.c 2007/10/08 16:19:23 20 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $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 $ * * SPARC CPU emulation. */ @@ -112,8 +112,8 @@ void sparc_cpu_register_dump(struct cpu *cpu, int gprs, int coprocs) { char *symbol; - uint64_t offset, tmp; - int i, x = cpu->cpu_id; + uint64_t offset; + int x = cpu->cpu_id; int bits32 = 0; if (gprs) { @@ -157,32 +157,6 @@ /* - * 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"); -} - - -/* * sparc_cpu_interrupt(): */ int sparc_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr) @@ -217,10 +191,10 @@ int sparc_cpu_disassemble_instr(struct cpu *cpu, unsigned char *instr, int running, uint64_t dumpaddr, int bintrans) { - uint64_t offset, addr; + uint64_t offset; uint32_t iword; int hi6; - char *symbol, *mnem = "ERROR"; + char *symbol; if (running) dumpaddr = cpu->pc;