Commit afa05eb15e71a0cca62bd75b5424119419b8a074
1 parent
de5eaa64
always completely redefine the TLB in case of MMU fault
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@466 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
0 deletions
target-i386/helper2.c
... | ... | @@ -400,6 +400,9 @@ int cpu_x86_handle_mmu_fault(CPUX86State *env, uint32_t addr, |
400 | 400 | if (prot & PROT_WRITE) { |
401 | 401 | env->tlb_write[is_user][index].address = address; |
402 | 402 | 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; | |
403 | 406 | } |
404 | 407 | page_set_flags(vaddr, vaddr + TARGET_PAGE_SIZE, |
405 | 408 | PAGE_VALID | PAGE_EXEC | prot); | ... | ... |