Revision 9e31b9e2 target-sparc/translate.c
b/target-sparc/translate.c | ||
---|---|---|
4194 | 4194 |
target_phys_addr_t phys_addr; |
4195 | 4195 |
int prot, access_index; |
4196 | 4196 |
|
4197 |
if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 2, 0) != 0) |
|
4198 |
if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 0, 0) != 0) |
|
4197 |
if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 2, |
|
4198 |
MMU_KERNEL_IDX) != 0) |
|
4199 |
if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, |
|
4200 |
0, MMU_KERNEL_IDX) != 0) |
|
4199 | 4201 |
return -1; |
4200 | 4202 |
if (cpu_get_physical_page_desc(phys_addr) == IO_MEM_UNASSIGNED) |
4201 | 4203 |
return -1; |
Also available in: Unified diff