28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cpu_x86.h,v 1.33 2005/08/25 17:32:21 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 |
|
|