28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cpu_x86.h,v 1.32 2005/08/14 23:44:23 debug Exp $ |
* $Id: cpu_x86.h,v 1.35 2005/10/27 14:01:15 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
108 |
|
|
109 |
/* Translation cache struct for each physical page: */ |
/* Translation cache struct for each physical page: */ |
110 |
struct x86_tc_physpage { |
struct x86_tc_physpage { |
111 |
|
struct x86_instr_call ics[X86_IC_ENTRIES_PER_PAGE + 1]; |
112 |
uint32_t next_ofs; /* or 0 for end of chain */ |
uint32_t next_ofs; /* or 0 for end of chain */ |
|
uint64_t physaddr; |
|
113 |
int flags; |
int flags; |
114 |
struct x86_instr_call ics[X86_IC_ENTRIES_PER_PAGE + 1]; |
uint64_t physaddr; |
115 |
}; |
}; |
116 |
|
|
117 |
#define X86_N_VPH_ENTRIES 1048576 |
#define X86_N_VPH_ENTRIES 1048576 |
204 |
unsigned char *host_store[X86_N_VPH_ENTRIES]; |
unsigned char *host_store[X86_N_VPH_ENTRIES]; |
205 |
uint32_t phys_addr[X86_N_VPH_ENTRIES]; |
uint32_t phys_addr[X86_N_VPH_ENTRIES]; |
206 |
struct x86_tc_physpage *phys_page[X86_N_VPH_ENTRIES]; |
struct x86_tc_physpage *phys_page[X86_N_VPH_ENTRIES]; |
207 |
|
|
208 |
|
uint32_t phystranslation[X86_N_VPH_ENTRIES/32]; |
209 |
}; |
}; |
210 |
|
|
211 |
|
|
331 |
unsigned char *data, size_t len, int writeflag, int cache_flags); |
unsigned char *data, size_t len, int writeflag, int cache_flags); |
332 |
int x86_cpu_family_init(struct cpu_family *); |
int x86_cpu_family_init(struct cpu_family *); |
333 |
|
|
334 |
|
/* memory_x86.c: */ |
335 |
|
int x86_translate_address(struct cpu *cpu, uint64_t vaddr, |
336 |
|
uint64_t *return_addr, int flags); |
337 |
|
|
338 |
#endif /* CPU_X86_H */ |
#endif /* CPU_X86_H */ |