/[gxemul]/trunk/src/include/cpu_mips.h
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/include/cpu_mips.h

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

revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC revision 34 by dpavlin, Mon Oct 8 16:21:17 2007 UTC
# Line 2  Line 2 
2  #define CPU_MIPS_H  #define CPU_MIPS_H
3    
4  /*  /*
5   *  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.   *  Copyright (C) 2003-2007  Anders Gavare.  All rights reserved.
6   *   *
7   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
8   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: cpu_mips.h,v 1.50 2006/10/14 23:47:37 debug Exp $   *  $Id: cpu_mips.h,v 1.55 2007/02/07 18:58:32 debug Exp $
32   */   */
33    
34    #include "interrupt.h"
35  #include "misc.h"  #include "misc.h"
36    
37  struct cpu_family;  struct cpu_family;
# Line 203  struct r4000_cache_line { Line 204  struct r4000_cache_line {
204  #define MIPS_L2N                17  #define MIPS_L2N                17
205  #define MIPS_L3N                18  #define MIPS_L3N                18
206    
207  #define MIPS_MAX_VPH_TLB_ENTRIES        192  #define MIPS_MAX_VPH_TLB_ENTRIES        128
208  DYNTRANS_MISC_DECLARATIONS(mips,MIPS,uint64_t)  DYNTRANS_MISC_DECLARATIONS(mips,MIPS,uint64_t)
209  DYNTRANS_MISC64_DECLARATIONS(mips,MIPS,uint8_t)  DYNTRANS_MISC64_DECLARATIONS(mips,MIPS,uint8_t)
210    
# Line 230  struct mips_cpu { Line 231  struct mips_cpu {
231          /*  Count/compare timer:  */          /*  Count/compare timer:  */
232          int             compare_register_set;          int             compare_register_set;
233          int             compare_interrupts_pending;          int             compare_interrupts_pending;
234            struct interrupt irq_compare;
235          struct timer    *timer;          struct timer    *timer;
236    
237          int             rmw;            /*  Read-Modify-Write  */          int             rmw;            /*  Read-Modify-Write  */
# Line 275  struct mips_cpu { Line 277  struct mips_cpu {
277    
278    
279  /*  cpu_mips.c:  */  /*  cpu_mips.c:  */
280    void mips_cpu_interrupt_assert(struct interrupt *interrupt);
281    void mips_cpu_interrupt_deassert(struct interrupt *interrupt);
282  int mips_cpu_instruction_has_delayslot(struct cpu *cpu, unsigned char *ib);  int mips_cpu_instruction_has_delayslot(struct cpu *cpu, unsigned char *ib);
283  void mips_cpu_tlbdump(struct machine *m, int x, int rawflag);  void mips_cpu_tlbdump(struct machine *m, int x, int rawflag);
284  void mips_cpu_register_match(struct machine *m, char *name,  void mips_cpu_register_match(struct machine *m, char *name,
# Line 282  void mips_cpu_register_match(struct mach Line 286  void mips_cpu_register_match(struct mach
286  void mips_cpu_register_dump(struct cpu *cpu, int gprs, int coprocs);  void mips_cpu_register_dump(struct cpu *cpu, int gprs, int coprocs);
287  int mips_cpu_disassemble_instr(struct cpu *cpu, unsigned char *instr,  int mips_cpu_disassemble_instr(struct cpu *cpu, unsigned char *instr,
288          int running, uint64_t addr);          int running, uint64_t addr);
 int mips_cpu_interrupt(struct cpu *cpu, uint64_t irq_nr);  
 int mips_cpu_interrupt_ack(struct cpu *cpu, uint64_t irq_nr);  
289  void mips_cpu_exception(struct cpu *cpu, int exccode, int tlb, uint64_t vaddr,  void mips_cpu_exception(struct cpu *cpu, int exccode, int tlb, uint64_t vaddr,
290          /*  uint64_t pagemask,  */  int coproc_nr, uint64_t vaddr_vpn2,          /*  uint64_t pagemask,  */  int coproc_nr, uint64_t vaddr_vpn2,
291          int vaddr_asid, int x_64);          int vaddr_asid, int x_64);

Legend:
Removed from v.32  
changed lines
  Added in v.34

  ViewVC Help
Powered by ViewVC 1.1.26