From d8e3326c8efe811d6275a1eaa19d570b1ab66927 Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 14 Jun 2006 12:37:30 +0000 Subject: [PATCH] MMU no fault fix git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1961 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sparc/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-sparc/helper.c b/target-sparc/helper.c index d011de7fb7..982b7fcdec 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -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 */ -- GitLab