28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cpu_sparc.h,v 1.12 2005/10/27 14:01:15 debug Exp $ |
* $Id: cpu_sparc.h,v 1.15 2005/11/16 21:15:19 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
63 |
|
|
64 |
#define SPARC_MAX_VPH_TLB_ENTRIES 256 |
#define SPARC_MAX_VPH_TLB_ENTRIES 256 |
65 |
struct sparc_vpg_tlb_entry { |
struct sparc_vpg_tlb_entry { |
66 |
int valid; |
uint8_t valid; |
67 |
int writeflag; |
uint8_t writeflag; |
|
int64_t timestamp; |
|
68 |
unsigned char *host_page; |
unsigned char *host_page; |
69 |
|
int64_t timestamp; |
70 |
uint64_t vaddr_page; |
uint64_t vaddr_page; |
71 |
uint64_t paddr_page; |
uint64_t paddr_page; |
72 |
}; |
}; |
87 |
struct sparc_instr_call *cur_ic_page; |
struct sparc_instr_call *cur_ic_page; |
88 |
struct sparc_instr_call *next_ic; |
struct sparc_instr_call *next_ic; |
89 |
|
|
90 |
|
void (*combination_check)(struct cpu *, |
91 |
|
struct sparc_instr_call *, int low_addr); |
92 |
|
|
93 |
/* |
/* |
94 |
* Virtual -> physical -> host address translation: |
* Virtual -> physical -> host address translation: |
105 |
struct sparc_tc_physpage *phys_page[SPARC_N_VPH_ENTRIES]; |
struct sparc_tc_physpage *phys_page[SPARC_N_VPH_ENTRIES]; |
106 |
|
|
107 |
uint32_t phystranslation[SPARC_N_VPH_ENTRIES/32]; |
uint32_t phystranslation[SPARC_N_VPH_ENTRIES/32]; |
108 |
|
uint8_t vaddr_to_tlbindex[SPARC_N_VPH_ENTRIES]; |
109 |
}; |
}; |
110 |
|
|
111 |
|
|