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

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 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: cpu_alpha.h,v 1.23 2005/08/28 20:16:24 debug Exp $   *  $Id: cpu_alpha.h,v 1.27 2005/11/16 21:15:19 debug Exp $
32   */   */
33    
34  #include "misc.h"  #include "misc.h"
# Line 72  struct alpha_instr_call { Line 72  struct alpha_instr_call {
72    
73  /*  Translation cache struct for each physical page:  */  /*  Translation cache struct for each physical page:  */
74  struct alpha_tc_physpage {  struct alpha_tc_physpage {
75            struct alpha_instr_call ics[ALPHA_IC_ENTRIES_PER_PAGE + 1];
76          uint32_t        next_ofs;       /*  or 0 for end of chain  */          uint32_t        next_ofs;       /*  or 0 for end of chain  */
77          uint32_t        physaddr;          uint32_t        physaddr;
78          int             flags;          int             flags;
         struct alpha_instr_call ics[ALPHA_IC_ENTRIES_PER_PAGE + 1];  
79  };  };
80    
81    
# Line 104  struct alpha_vph_page { Line 104  struct alpha_vph_page {
104    
105  #define ALPHA_MAX_VPH_TLB_ENTRIES       128  #define ALPHA_MAX_VPH_TLB_ENTRIES       128
106  struct alpha_vpg_tlb_entry {  struct alpha_vpg_tlb_entry {
107          int             valid;          unsigned char   valid;
108          int             writeflag;          unsigned char   writeflag;
109          int64_t         timestamp;          int64_t         timestamp;
         unsigned char   *host_page;  
110          uint64_t        vaddr_page;          uint64_t        vaddr_page;
111          uint64_t        paddr_page;          uint64_t        paddr_page;
112            unsigned char   *host_page;
113  };  };
114    
115  struct alpha_cpu {  struct alpha_cpu {
# Line 139  struct alpha_cpu { Line 139  struct alpha_cpu {
139          struct alpha_instr_call *cur_ic_page;          struct alpha_instr_call *cur_ic_page;
140          struct alpha_instr_call *next_ic;          struct alpha_instr_call *next_ic;
141    
142            void                    (*combination_check)(struct cpu *,
143                                        struct alpha_instr_call *, int low_addr);
144    
145          /*          /*
146           *  Virtual -> physical -> host address translation:           *  Virtual -> physical -> host address translation:
# Line 156  struct alpha_cpu { Line 158  struct alpha_cpu {
158  /*  cpu_alpha.c:  */  /*  cpu_alpha.c:  */
159  void alpha_update_translation_table(struct cpu *cpu, uint64_t vaddr_page,  void alpha_update_translation_table(struct cpu *cpu, uint64_t vaddr_page,
160          unsigned char *host_page, int writeflag, uint64_t paddr_page);          unsigned char *host_page, int writeflag, uint64_t paddr_page);
161  void alpha_invalidate_translation_caches_paddr(struct cpu *cpu, uint64_t, int);  void alpha_invalidate_translation_caches(struct cpu *cpu, uint64_t, int);
162  void alpha_invalidate_code_translation(struct cpu *cpu, uint64_t, int);  void alpha_invalidate_code_translation(struct cpu *cpu, uint64_t, int);
163  int alpha_memory_rw(struct cpu *cpu, struct memory *mem, uint64_t vaddr,  int alpha_memory_rw(struct cpu *cpu, struct memory *mem, uint64_t vaddr,
164          unsigned char *data, size_t len, int writeflag, int cache_flags);          unsigned char *data, size_t len, int writeflag, int cache_flags);

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

  ViewVC Help
Powered by ViewVC 1.1.26