/[gxemul]/trunk/src/cpus/cpu_i960.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_i960.c

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

revision 14 by dpavlin, Mon Oct 8 16:18:51 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 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_i960.c,v 1.2 2005/09/07 07:41:30 debug Exp $   *  $Id: cpu_i960.c,v 1.9 2006/06/16 18:31:25 debug Exp $
29   *   *
30   *  Intel i960 CPU emulation.   *  Intel i960 CPU emulation.
31   */   */
# Line 62  int i960_cpu_new(struct cpu *cpu, struct Line 62  int i960_cpu_new(struct cpu *cpu, struct
62    
63          cpu->memory_rw = i960_memory_rw;          cpu->memory_rw = i960_memory_rw;
64          cpu->update_translation_table = i960_update_translation_table;          cpu->update_translation_table = i960_update_translation_table;
65          cpu->invalidate_translation_caches_paddr =          cpu->invalidate_translation_caches =
66              i960_invalidate_translation_caches_paddr;              i960_invalidate_translation_caches;
67          cpu->invalidate_code_translation = i960_invalidate_code_translation;          cpu->invalidate_code_translation = i960_invalidate_code_translation;
68          cpu->is_32bit = 1;          cpu->is_32bit = 1;
69    
# Line 149  void i960_cpu_register_match(struct mach Line 149  void i960_cpu_register_match(struct mach
149    
150    
151  /*  /*
  *  i960_cpu_show_full_statistics():  
  *  
  *  Show detailed statistics on opcode usage on each cpu.  
  */  
 void i960_cpu_show_full_statistics(struct machine *m)  
 {  
         fatal("i960_cpu_show_full_statistics(): TODO\n");  
 }  
   
   
 /*  
152   *  i960_cpu_tlbdump():   *  i960_cpu_tlbdump():
153   *   *
154   *  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 170  void i960_cpu_show_full_statistics(struc Line 159  void i960_cpu_show_full_statistics(struc
159   */   */
160  void i960_cpu_tlbdump(struct machine *m, int x, int rawflag)  void i960_cpu_tlbdump(struct machine *m, int x, int rawflag)
161  {  {
162          fatal("i960_cpu_tlbdump(): TODO\n");  }
163    
164    
165    /*
166     *  i960_cpu_gdb_stub():
167     *
168     *  Execute a "remote GDB" command. Returns a newly allocated response string
169     *  on success, NULL on failure.
170     */
171    char *i960_cpu_gdb_stub(struct cpu *cpu, char *cmd)
172    {
173            fatal("i960_cpu_gdb_stub(): TODO\n");
174            return NULL;
175  }  }
176    
177    
# Line 215  static void print_spaces(int len) { int Line 216  static void print_spaces(int len) { int
216   *  cpu->pc for relative addresses.   *  cpu->pc for relative addresses.
217   */   */
218  int i960_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib,  int i960_cpu_disassemble_instr(struct cpu *cpu, unsigned char *ib,
219          int running, uint64_t dumpaddr, int bintrans)          int running, uint64_t dumpaddr)
220  {  {
221          uint64_t offset;          uint64_t offset;
222          int len = 0;          int len = 0;

Legend:
Removed from v.14  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26