--- trunk/src/cpus/cpu_sh.c 2007/10/08 16:19:37 22 +++ trunk/src/cpus/cpu_sh.c 2007/10/08 16:19:56 24 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005 Anders Gavare. All rights reserved. + * Copyright (C) 2005-2006 Anders Gavare. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: cpu_sh.c,v 1.9 2006/02/17 18:38:30 debug Exp $ + * $Id: cpu_sh.c,v 1.15 2006/06/16 18:31:26 debug Exp $ * * Hitachi SuperH ("SH") CPU emulation. * @@ -89,6 +89,8 @@ debug("%s", cpu->name); } + sh_init_64bit_dummy_tables(cpu); + return 1; } @@ -192,6 +194,33 @@ /* + * sh_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 sh_cpu_tlbdump(struct machine *m, int x, int rawflag) +{ +} + + +/* + * sh_cpu_gdb_stub(): + * + * Execute a "remote GDB" command. Returns a newly allocated response string + * on success, NULL on failure. + */ +char *sh_cpu_gdb_stub(struct cpu *cpu, char *cmd) +{ + fatal("sh_cpu_gdb_stub(): TODO\n"); + return NULL; +} + + +/* * sh_cpu_interrupt(): */ int sh_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr) @@ -219,7 +248,7 @@ * lowest 4 or 8 bits then select sub-opcode. */ int sh_cpu_disassemble_instr_compact(struct cpu *cpu, unsigned char *instr, - int running, uint64_t dumpaddr, int bintrans) + int running, uint64_t dumpaddr) { uint64_t addr; uint16_t iword; @@ -542,7 +571,7 @@ * cpu->pc for relative addresses. */ int sh_cpu_disassemble_instr(struct cpu *cpu, unsigned char *instr, - int running, uint64_t dumpaddr, int bintrans) + int running, uint64_t dumpaddr) { uint64_t offset; uint32_t iword; @@ -566,7 +595,7 @@ if (cpu->cd.sh.compact) return sh_cpu_disassemble_instr_compact(cpu, instr, - running, dumpaddr, bintrans); + running, dumpaddr); if (cpu->byte_order == EMUL_BIG_ENDIAN) iword = (instr[0] << 24) + (instr[1] << 16) + (instr[2] << 8)