28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cpu_ia64.h,v 1.3 2005/08/28 20:16:24 debug Exp $ |
* $Id: cpu_ia64.h,v 1.7 2005/11/16 21:15:19 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
53 |
|
|
54 |
/* Translation cache struct for each physical page: */ |
/* Translation cache struct for each physical page: */ |
55 |
struct ia64_tc_physpage { |
struct ia64_tc_physpage { |
56 |
|
struct ia64_instr_call ics[IA64_IC_ENTRIES_PER_PAGE + 1]; |
57 |
uint32_t next_ofs; /* or 0 for end of chain */ |
uint32_t next_ofs; /* or 0 for end of chain */ |
|
uint32_t physaddr; |
|
58 |
int flags; |
int flags; |
59 |
struct ia64_instr_call ics[IA64_IC_ENTRIES_PER_PAGE + 1]; |
uint64_t physaddr; |
60 |
}; |
}; |
61 |
|
|
62 |
|
|
81 |
}; |
}; |
82 |
|
|
83 |
|
|
84 |
#define IA64_MAX_VPH_TLB_ENTRIES 48 |
#define IA64_MAX_VPH_TLB_ENTRIES 64 |
85 |
struct ia64_vpg_tlb_entry { |
struct ia64_vpg_tlb_entry { |
86 |
int valid; |
unsigned char valid; |
87 |
int writeflag; |
unsigned char writeflag; |
88 |
int64_t timestamp; |
int64_t timestamp; |
|
unsigned char *host_page; |
|
89 |
uint64_t vaddr_page; |
uint64_t vaddr_page; |
90 |
uint64_t paddr_page; |
uint64_t paddr_page; |
91 |
|
unsigned char *host_page; |
92 |
}; |
}; |
93 |
|
|
94 |
struct ia64_cpu { |
struct ia64_cpu { |
107 |
struct ia64_instr_call *cur_ic_page; |
struct ia64_instr_call *cur_ic_page; |
108 |
struct ia64_instr_call *next_ic; |
struct ia64_instr_call *next_ic; |
109 |
|
|
110 |
|
void (*combination_check)(struct cpu *, |
111 |
|
struct ia64_instr_call *, int low_addr); |
112 |
|
|
113 |
/* |
/* |
114 |
* Virtual -> physical -> host address translation: |
* Virtual -> physical -> host address translation: |
125 |
/* cpu_ia64.c: */ |
/* cpu_ia64.c: */ |
126 |
void ia64_update_translation_table(struct cpu *cpu, uint64_t vaddr_page, |
void ia64_update_translation_table(struct cpu *cpu, uint64_t vaddr_page, |
127 |
unsigned char *host_page, int writeflag, uint64_t paddr_page); |
unsigned char *host_page, int writeflag, uint64_t paddr_page); |
128 |
void ia64_invalidate_translation_caches_paddr(struct cpu *cpu, uint64_t, int); |
void ia64_invalidate_translation_caches(struct cpu *cpu, uint64_t, int); |
129 |
void ia64_invalidate_code_translation(struct cpu *cpu, uint64_t, int); |
void ia64_invalidate_code_translation(struct cpu *cpu, uint64_t, int); |
130 |
int ia64_memory_rw(struct cpu *cpu, struct memory *mem, uint64_t vaddr, |
int ia64_memory_rw(struct cpu *cpu, struct memory *mem, uint64_t vaddr, |
131 |
unsigned char *data, size_t len, int writeflag, int cache_flags); |
unsigned char *data, size_t len, int writeflag, int cache_flags); |