| 400 |
if (prot & PROT_WRITE) { |
if (prot & PROT_WRITE) { |
| 401 |
env->tlb_write[is_user][index].address = address; |
env->tlb_write[is_user][index].address = address; |
| 402 |
env->tlb_write[is_user][index].addend = addend; |
env->tlb_write[is_user][index].addend = addend; |
| 403 |
|
} else { |
| 404 |
|
env->tlb_write[is_user][index].address = -1; |
| 405 |
|
env->tlb_write[is_user][index].addend = -1; |
| 406 |
} |
} |
| 407 |
page_set_flags(vaddr, vaddr + TARGET_PAGE_SIZE, |
page_set_flags(vaddr, vaddr + TARGET_PAGE_SIZE, |
| 408 |
PAGE_VALID | PAGE_EXEC | prot); |
PAGE_VALID | PAGE_EXEC | prot); |