Revision 40ce0a9a target-sparc/helper.c
b/target-sparc/helper.c | ||
---|---|---|
110 | 110 |
unsigned long page_offset; |
111 | 111 |
|
112 | 112 |
virt_addr = address & TARGET_PAGE_MASK; |
113 |
|
|
113 | 114 |
if ((env->mmuregs[0] & MMU_E) == 0) { /* MMU disabled */ |
115 |
// Boot mode: instruction fetches are taken from PROM |
|
116 |
if (rw == 2 && (env->mmuregs[0] & MMU_BM)) { |
|
117 |
*physical = 0xff0000000ULL | (address & 0x3ffffULL); |
|
118 |
*prot = PAGE_READ | PAGE_EXEC; |
|
119 |
return 0; |
|
120 |
} |
|
114 | 121 |
*physical = address; |
115 | 122 |
*prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; |
116 | 123 |
return 0; |
Also available in: Unified diff