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.25 2005/10/22 17:24:22 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
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 |
|
|
156 |
/* cpu_alpha.c: */ |
/* cpu_alpha.c: */ |
157 |
void alpha_update_translation_table(struct cpu *cpu, uint64_t vaddr_page, |
void alpha_update_translation_table(struct cpu *cpu, uint64_t vaddr_page, |
158 |
unsigned char *host_page, int writeflag, uint64_t paddr_page); |
unsigned char *host_page, int writeflag, uint64_t paddr_page); |
159 |
void alpha_invalidate_translation_caches_paddr(struct cpu *cpu, uint64_t, int); |
void alpha_invalidate_translation_caches(struct cpu *cpu, uint64_t, int); |
160 |
void alpha_invalidate_code_translation(struct cpu *cpu, uint64_t, int); |
void alpha_invalidate_code_translation(struct cpu *cpu, uint64_t, int); |
161 |
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, |
162 |
unsigned char *data, size_t len, int writeflag, int cache_flags); |
unsigned char *data, size_t len, int writeflag, int cache_flags); |