mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
MMU no fault fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1961 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0986ac3be2
commit
d8e3326c8e
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ int get_physical_address (CPUState *env, target_phys_addr_t *physical, int *prot
|
|||
/* check access */
|
||||
access_perms = (pde & PTE_ACCESS_MASK) >> PTE_ACCESS_SHIFT;
|
||||
error_code = access_table[*access_index][access_perms];
|
||||
if (error_code && !(env->mmuregs[0] & MMU_NF))
|
||||
if (error_code && !((env->mmuregs[0] & MMU_NF) && is_user))
|
||||
return error_code;
|
||||
|
||||
/* the page can be put in the TLB */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue