28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cpu_sh.h,v 1.7 2005/10/27 14:01:15 debug Exp $ |
* $Id: cpu_sh.h,v 1.10 2005/11/16 21:15:19 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
63 |
|
|
64 |
#define SH_MAX_VPH_TLB_ENTRIES 256 |
#define SH_MAX_VPH_TLB_ENTRIES 256 |
65 |
struct sh_vpg_tlb_entry { |
struct sh_vpg_tlb_entry { |
66 |
int valid; |
uint8_t valid; |
67 |
int writeflag; |
uint8_t writeflag; |
68 |
int64_t timestamp; |
int64_t timestamp; |
|
unsigned char *host_page; |
|
69 |
uint64_t vaddr_page; |
uint64_t vaddr_page; |
70 |
uint64_t paddr_page; |
uint64_t paddr_page; |
71 |
|
unsigned char *host_page; |
72 |
}; |
}; |
73 |
|
|
74 |
struct sh_cpu { |
struct sh_cpu { |
89 |
struct sh_instr_call *cur_ic_page; |
struct sh_instr_call *cur_ic_page; |
90 |
struct sh_instr_call *next_ic; |
struct sh_instr_call *next_ic; |
91 |
|
|
92 |
|
void (*combination_check)(struct cpu *, |
93 |
|
struct sh_instr_call *, int low_addr); |
94 |
|
|
95 |
/* |
/* |
96 |
* Virtual -> physical -> host address translation: |
* Virtual -> physical -> host address translation: |
107 |
struct sh_tc_physpage *phys_page[SH_N_VPH_ENTRIES]; |
struct sh_tc_physpage *phys_page[SH_N_VPH_ENTRIES]; |
108 |
|
|
109 |
uint32_t phystranslation[SH_N_VPH_ENTRIES/32]; |
uint32_t phystranslation[SH_N_VPH_ENTRIES/32]; |
110 |
|
uint8_t vaddr_to_tlbindex[SH_N_VPH_ENTRIES]; |
111 |
}; |
}; |
112 |
|
|
113 |
|
|