]> git.proxmox.com Git - mirror_qemu.git/blobdiff - exec-all.h
MIPS target (Jocelyn Mayer)
[mirror_qemu.git] / exec-all.h
index 183df1faaeb7762946966df3b982b82e172da890..b7c0ad8601bfb07fcd93395b62ebc73ff418f41e 100644 (file)
@@ -582,6 +582,8 @@ static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr)
     is_user = ((env->hflags & HF_CPL_MASK) == 3);
 #elif defined (TARGET_PPC)
     is_user = msr_pr;
+#elif defined (TARGET_MIPS)
+    is_user = ((env->hflags & MIPS_HFLAG_MODE) == MIPS_HFLAG_UM);
 #elif defined (TARGET_SPARC)
     is_user = (env->psrs == 0);
 #else