/[gxemul]/trunk/src/cpus/cpu_mips.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_mips.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 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_mips.c,v 1.3 2005/09/19 20:10:57 debug Exp $   *  $Id: cpu_mips.c,v 1.8 2005/11/13 00:14:07 debug Exp $
29   *   *
30   *  MIPS core CPU emulation.   *  MIPS core CPU emulation.
31   */   */
# Line 158  int mips_cpu_new(struct cpu *cpu, struct Line 158  int mips_cpu_new(struct cpu *cpu, struct
158          cpu->byte_order         = EMUL_LITTLE_ENDIAN;          cpu->byte_order         = EMUL_LITTLE_ENDIAN;
159          cpu->cd.mips.gpr[MIPS_GPR_SP] = INITIAL_STACK_POINTER;          cpu->cd.mips.gpr[MIPS_GPR_SP] = INITIAL_STACK_POINTER;
160          cpu->update_translation_table = mips_update_translation_table;          cpu->update_translation_table = mips_update_translation_table;
161          cpu->invalidate_translation_caches_paddr =          cpu->invalidate_translation_caches =
162              mips_invalidate_translation_caches_paddr;              mips_invalidate_translation_caches_paddr;
163    
164          if (cpu->cd.mips.cpu_type.isa_level <= 2 ||          if (cpu->cd.mips.cpu_type.isa_level <= 2 ||
# Line 1468  int mips_cpu_interrupt(struct cpu *cpu, Line 1468  int mips_cpu_interrupt(struct cpu *cpu,
1468   *  Acknowledge an interrupt. If irq_nr is 2..7, then it is a MIPS hardware   *  Acknowledge an interrupt. If irq_nr is 2..7, then it is a MIPS hardware
1469   *  interrupt.  Interrupts 0..1 are ignored (software interrupts).   *  interrupt.  Interrupts 0..1 are ignored (software interrupts).
1470   *   *
1471   *  If irq_nr is >= 8, then it is machine dependant, and md_interrupt() is   *  If irq_nr is >= 8, then it is machine dependent, and md_interrupt() is
1472   *  called.   *  called.
1473   */   */
1474  int mips_cpu_interrupt_ack(struct cpu *cpu, uint64_t irq_nr)  int mips_cpu_interrupt_ack(struct cpu *cpu, uint64_t irq_nr)
# Line 1930  int mips_cpu_run_instr(struct emul *emul Line 1930  int mips_cpu_run_instr(struct emul *emul
1930                  }                  }
1931          }          }
1932    
   
1933          /*          /*
1934           *  ROM emulation:  (0xbfcXXXXX or 0x9fcXXXXX)           *  ROM emulation:  (0xbfcXXXXX or 0x9fcXXXXX)
1935           *           *
# Line 4148  void mips_cpu_list_available_types(void) Line 4147  void mips_cpu_list_available_types(void)
4147  }  }
4148    
4149    
4150  CPU_FAMILY_INIT(mips,"MIPS")  /*  NOTE: _OLD_ family init. TODO: remove all this  */
4151    
4152    CPU_OLD_FAMILY_INIT(mips,"MIPS")
4153    
4154    
4155  #endif  /*  ENABLE_MIPS  */  #endif  /*  ENABLE_MIPS  */

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

  ViewVC Help
Powered by ViewVC 1.1.26