diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-25 22:28:25 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-25 22:28:25 +0000 |
commit | bb7ec0437a647c6734f65719f861d68a5281351d (patch) | |
tree | 08d7288dcf56b29b2b8f640d84e6f16fdf66dade /linux-user/syscall.c | |
parent | bdf46ea256cfc12221b64399c4e896139990e2c1 (diff) |
m68k mmap2 fixes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4106 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 72b80e3fbb..a15c93567e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4086,10 +4086,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, #endif #ifdef TARGET_NR_mmap2 case TARGET_NR_mmap2: -#if defined(TARGET_SPARC) || defined(TARGET_MIPS) +#ifndef MMAP_SHIFT #define MMAP_SHIFT 12 -#else -#define MMAP_SHIFT TARGET_PAGE_BITS #endif ret = get_errno(target_mmap(arg1, arg2, arg3, target_to_host_bitmask(arg4, mmap_flags_tbl), |