Revision a8170e5e target-mips/helper.c
b/target-mips/helper.c | ||
---|---|---|
36 | 36 |
#if !defined(CONFIG_USER_ONLY) |
37 | 37 |
|
38 | 38 |
/* no MMU emulation */ |
39 |
int no_mmu_map_address (CPUMIPSState *env, target_phys_addr_t *physical, int *prot,
|
|
39 |
int no_mmu_map_address (CPUMIPSState *env, hwaddr *physical, int *prot,
|
|
40 | 40 |
target_ulong address, int rw, int access_type) |
41 | 41 |
{ |
42 | 42 |
*physical = address; |
... | ... | |
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
/* fixed mapping MMU emulation */ |
48 |
int fixed_mmu_map_address (CPUMIPSState *env, target_phys_addr_t *physical, int *prot,
|
|
48 |
int fixed_mmu_map_address (CPUMIPSState *env, hwaddr *physical, int *prot,
|
|
49 | 49 |
target_ulong address, int rw, int access_type) |
50 | 50 |
{ |
51 | 51 |
if (address <= (int32_t)0x7FFFFFFFUL) { |
... | ... | |
63 | 63 |
} |
64 | 64 |
|
65 | 65 |
/* MIPS32/MIPS64 R4000-style MMU emulation */ |
66 |
int r4k_map_address (CPUMIPSState *env, target_phys_addr_t *physical, int *prot,
|
|
66 |
int r4k_map_address (CPUMIPSState *env, hwaddr *physical, int *prot,
|
|
67 | 67 |
target_ulong address, int rw, int access_type) |
68 | 68 |
{ |
69 | 69 |
uint8_t ASID = env->CP0_EntryHi & 0xFF; |
... | ... | |
99 | 99 |
return TLBRET_NOMATCH; |
100 | 100 |
} |
101 | 101 |
|
102 |
static int get_physical_address (CPUMIPSState *env, target_phys_addr_t *physical,
|
|
102 |
static int get_physical_address (CPUMIPSState *env, hwaddr *physical,
|
|
103 | 103 |
int *prot, target_ulong address, |
104 | 104 |
int rw, int access_type) |
105 | 105 |
{ |
... | ... | |
254 | 254 |
} |
255 | 255 |
|
256 | 256 |
#if !defined(CONFIG_USER_ONLY) |
257 |
target_phys_addr_t cpu_get_phys_page_debug(CPUMIPSState *env, target_ulong addr)
|
|
257 |
hwaddr cpu_get_phys_page_debug(CPUMIPSState *env, target_ulong addr)
|
|
258 | 258 |
{ |
259 |
target_phys_addr_t phys_addr;
|
|
259 |
hwaddr phys_addr;
|
|
260 | 260 |
int prot; |
261 | 261 |
|
262 | 262 |
if (get_physical_address(env, &phys_addr, &prot, addr, 0, ACCESS_INT) != 0) |
... | ... | |
269 | 269 |
int mmu_idx) |
270 | 270 |
{ |
271 | 271 |
#if !defined(CONFIG_USER_ONLY) |
272 |
target_phys_addr_t physical;
|
|
272 |
hwaddr physical;
|
|
273 | 273 |
int prot; |
274 | 274 |
int access_type; |
275 | 275 |
#endif |
... | ... | |
308 | 308 |
} |
309 | 309 |
|
310 | 310 |
#if !defined(CONFIG_USER_ONLY) |
311 |
target_phys_addr_t cpu_mips_translate_address(CPUMIPSState *env, target_ulong address, int rw)
|
|
311 |
hwaddr cpu_mips_translate_address(CPUMIPSState *env, target_ulong address, int rw)
|
|
312 | 312 |
{ |
313 |
target_phys_addr_t physical;
|
|
313 |
hwaddr physical;
|
|
314 | 314 |
int prot; |
315 | 315 |
int access_type; |
316 | 316 |
int ret = 0; |
Also available in: Unified diff