/[gxemul]/trunk/src/cpus/cpu_m68k.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/cpus/cpu_m68k.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by dpavlin, Mon Oct 8 16:19:11 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 1  Line 1 
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:
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_m68k.c,v 1.4 2005/10/22 17:24:20 debug Exp $   *  $Id: cpu_m68k.c,v 1.12 2006/07/20 21:52:59 debug Exp $
29   *   *
30   *  Motorola 68K CPU emulation.   *  Motorola 68K CPU emulation.
31   */   */
# Line 64  int m68k_cpu_new(struct cpu *cpu, struct Line 64  int m68k_cpu_new(struct cpu *cpu, struct
64          if (strcasecmp(cpu_type_name, "68020") != 0)          if (strcasecmp(cpu_type_name, "68020") != 0)
65                  return 0;                  return 0;
66    
67            cpu->run_instr = m68k_run_instr;
68          cpu->memory_rw = m68k_memory_rw;          cpu->memory_rw = m68k_memory_rw;
69          cpu->update_translation_table = m68k_update_translation_table;          cpu->update_translation_table = m68k_update_translation_table;
70          cpu->invalidate_translation_caches =          cpu->invalidate_translation_caches =
# Line 123  void m68k_cpu_register_dump(struct cpu * Line 124  void m68k_cpu_register_dump(struct cpu *
124                  symbol = get_symbol_name(&cpu->machine->symbol_context,                  symbol = get_symbol_name(&cpu->machine->symbol_context,
125                      cpu->pc, &offset);                      cpu->pc, &offset);
126    
127                  debug("cpu%i: pc  = 0x%08x", x, (int)cpu->pc);                  debug("cpu%i: pc  = 0x%08"PRIx32, x, (uint32_t)cpu->pc);
128                  debug("  <%s>\n", symbol != NULL? symbol : " no symbol ");                  debug("  <%s>\n", symbol != NULL? symbol : " no symbol ");
129          }          }
130  }  }
# Line 153  void m68k_cpu_register_match(struct mach Line 154  void m68k_cpu_register_match(struct mach
154    
155    
156  /*  /*
  *  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");  
 }  
   
   
 /*  
157   *  m68k_cpu_tlbdump():   *  m68k_cpu_tlbdump():
158   *   *
159   *  Called from the debugger to dump the TLB in a readable format.   *  Called from the debugger to dump the TLB in a readable format.
# Line 174  void m68k_cpu_show_full_statistics(struc Line 164  void m68k_cpu_show_full_statistics(struc
164   */   */
165  void m68k_cpu_tlbdump(struct machine *m, int x, int rawflag)  void m68k_cpu_tlbdump(struct machine *m, int x, int rawflag)
166  {  {
167          fatal("m68k_cpu_tlbdump(): TODO\n");  }
168    
169    
170    /*
171     *  m68k_cpu_gdb_stub():
172     *
173     *  Execute a "remote GDB" command. Returns a newly allocated response string
174     *  on success, NULL on failure.
175     */
176    char *m68k_cpu_gdb_stub(struct cpu *cpu, char *cmd)
177    {
178            fatal("m68k_cpu_gdb_stub(): TODO\n");
179            return NULL;
180  }  }
181    
182    
# Line 218  static void print_spaces(int len) { int Line 220  static void print_spaces(int len) { int
220   *  cpu->pc for relative addresses.   *  cpu->pc for relative addresses.
221   */   */
222  int m68k_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib,  int m68k_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib,
223          int running, uint64_t dumpaddr, int bintrans)          int running, uint64_t dumpaddr)
224  {  {
225          uint64_t offset;          uint64_t offset;
226          int len = 0;          int len = 0;

Legend:
Removed from v.18  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26