28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cpu.h,v 1.48 2005/09/17 17:14:28 debug Exp $ |
* $Id: cpu.h,v 1.51 2005/10/27 14:01:15 debug Exp $ |
32 |
* |
* |
33 |
* See cpu.c. |
* See cpu.c. |
34 |
*/ |
*/ |
107 |
#define TRANSLATIONS 1 |
#define TRANSLATIONS 1 |
108 |
#define COMBINATIONS 2 |
#define COMBINATIONS 2 |
109 |
|
|
110 |
#define DYNTRANS_CACHE_SIZE (16*1048576) |
#define DYNTRANS_CACHE_SIZE (20*1048576) |
111 |
#define DYNTRANS_CACHE_MARGIN 300000 |
#define DYNTRANS_CACHE_MARGIN 300000 |
112 |
|
|
113 |
#define N_BASE_TABLE_ENTRIES 32768 |
#define N_BASE_TABLE_ENTRIES 32768 |
140 |
void (*update_translation_table)(struct cpu *, |
void (*update_translation_table)(struct cpu *, |
141 |
uint64_t vaddr_page, unsigned char *host_page, |
uint64_t vaddr_page, unsigned char *host_page, |
142 |
int writeflag, uint64_t paddr_page); |
int writeflag, uint64_t paddr_page); |
143 |
void (*invalidate_translation_caches_paddr)(struct cpu *, |
void (*invalidate_translation_caches)(struct cpu *, |
144 |
uint64_t paddr, int flags); |
uint64_t paddr, int flags); |
145 |
void (*invalidate_code_translation)(struct cpu *, |
void (*invalidate_code_translation)(struct cpu *, |
146 |
uint64_t paddr, int flags); |
uint64_t paddr, int flags); |
163 |
int n_translated_instrs; |
int n_translated_instrs; |
164 |
unsigned char *translation_cache; |
unsigned char *translation_cache; |
165 |
size_t translation_cache_cur_ofs; |
size_t translation_cache_cur_ofs; |
166 |
|
void (*combination_check)(struct cpu *, |
167 |
|
void * /* instr call ptr */, int low_addr); |
168 |
|
|
169 |
/* |
/* |
170 |
* CPU-family dependent: |
* CPU-family dependent: |
217 |
#define INVALIDATE_PADDR 4 |
#define INVALIDATE_PADDR 4 |
218 |
#define INVALIDATE_VADDR 8 |
#define INVALIDATE_VADDR 8 |
219 |
|
|
220 |
|
#define TLB_CODE 0x02 |
221 |
|
|
222 |
|
|
223 |
#define CPU_FAMILY_INIT(n,s) int n ## _cpu_family_init( \ |
#define CPU_FAMILY_INIT(n,s) int n ## _cpu_family_init( \ |
224 |
struct cpu_family *fp) { \ |
struct cpu_family *fp) { \ |