28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cpu_m68k.h,v 1.6 2005/10/27 14:01:15 debug Exp $ |
* $Id: cpu_m68k.h,v 1.9 2005/11/16 21:15:19 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
50 |
|
|
51 |
struct m68k_instr_call { |
struct m68k_instr_call { |
52 |
void (*f)(struct cpu *, struct m68k_instr_call *); |
void (*f)(struct cpu *, struct m68k_instr_call *); |
53 |
|
int len; |
54 |
size_t arg[M68K_N_IC_ARGS]; |
size_t arg[M68K_N_IC_ARGS]; |
55 |
}; |
}; |
56 |
|
|
67 |
|
|
68 |
#define M68K_MAX_VPH_TLB_ENTRIES 256 |
#define M68K_MAX_VPH_TLB_ENTRIES 256 |
69 |
struct m68k_vpg_tlb_entry { |
struct m68k_vpg_tlb_entry { |
70 |
int valid; |
uint8_t valid; |
71 |
int writeflag; |
uint8_t writeflag; |
|
int64_t timestamp; |
|
|
unsigned char *host_page; |
|
72 |
uint32_t vaddr_page; |
uint32_t vaddr_page; |
73 |
uint32_t paddr_page; |
uint32_t paddr_page; |
74 |
|
unsigned char *host_page; |
75 |
}; |
}; |
76 |
|
|
77 |
|
|
95 |
struct m68k_instr_call *cur_ic_page; |
struct m68k_instr_call *cur_ic_page; |
96 |
struct m68k_instr_call *next_ic; |
struct m68k_instr_call *next_ic; |
97 |
|
|
98 |
|
void (*combination_check)(struct cpu *, |
99 |
|
struct m68k_instr_call *, int low_addr); |
100 |
|
|
101 |
/* |
/* |
102 |
* Virtual -> physical -> host address translation: |
* Virtual -> physical -> host address translation: |
113 |
struct m68k_tc_physpage *phys_page[M68K_N_VPH_ENTRIES]; |
struct m68k_tc_physpage *phys_page[M68K_N_VPH_ENTRIES]; |
114 |
|
|
115 |
uint32_t phystranslation[M68K_N_VPH_ENTRIES/32]; |
uint32_t phystranslation[M68K_N_VPH_ENTRIES/32]; |
116 |
|
int16_t vaddr_to_tlbindex[M68K_N_VPH_ENTRIES]; |
117 |
}; |
}; |
118 |
|
|
119 |
|
|