aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-11 22:04:25 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-11 22:04:25 +0000
commit0d3267a728ee392bd5113b1d9ad3b135565012e3 (patch)
treed6e53fff24e5d6343bdb5841d0c51e9e59d9ad0f /linux-user
parent8e33c08c84b9f418dee69f79e7b579c59e77814b (diff)
MIPS has also a fixed MMAP_SHIFT of 12.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2243 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 155297966e..1c31218186 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2673,7 +2673,7 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
break;
#ifdef TARGET_NR_mmap2
case TARGET_NR_mmap2:
-#if defined(TARGET_SPARC)
+#if defined(TARGET_SPARC) || defined(TARGET_MIPS)
#define MMAP_SHIFT 12
#else
#define MMAP_SHIFT TARGET_PAGE_BITS