projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32 compile fix
[qemu]
/
exec-all.h
diff --git
a/exec-all.h
b/exec-all.h
index
4579da9
..
b7c0ad8
100644
(file)
--- a/
exec-all.h
+++ b/
exec-all.h
@@
-28,7
+28,7
@@
#define tostring(s) #s
#endif
#define tostring(s) #s
#endif
-#if GCC_MAJOR < 3
+#if __GNUC__ < 3
#define __builtin_expect(x, n) (x)
#endif
#define __builtin_expect(x, n) (x)
#endif
@@
-131,7
+131,7
@@
int tlb_set_page(CPUState *env, target_ulong vaddr,
#elif defined(__powerpc__)
#define CODE_GEN_BUFFER_SIZE (6 * 1024 * 1024)
#else
#elif defined(__powerpc__)
#define CODE_GEN_BUFFER_SIZE (6 * 1024 * 1024)
#else
-#define CODE_GEN_BUFFER_SIZE (8 * 1024 * 1024)
+#define CODE_GEN_BUFFER_SIZE (16 * 1024 * 1024)
#endif
//#define CODE_GEN_BUFFER_SIZE (128 * 1024)
#endif
//#define CODE_GEN_BUFFER_SIZE (128 * 1024)
@@
-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;
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
#elif defined (TARGET_SPARC)
is_user = (env->psrs == 0);
#else