Commit d8e3326c8efe811d6275a1eaa19d570b1ab66927

Authored by bellard
1 parent 0986ac3b

MMU no fault fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1961 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-sparc/helper.c
... ... @@ -190,7 +190,7 @@ int get_physical_address (CPUState *env, target_phys_addr_t *physical, int *prot
190 190 /* check access */
191 191 access_perms = (pde & PTE_ACCESS_MASK) >> PTE_ACCESS_SHIFT;
192 192 error_code = access_table[*access_index][access_perms];
193   - if (error_code && !(env->mmuregs[0] & MMU_NF))
  193 + if (error_code && !((env->mmuregs[0] & MMU_NF) && is_user))
194 194 return error_code;
195 195  
196 196 /* the page can be put in the TLB */
... ...