mmap2 fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@190 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2003-05-27 23:25:06 +00:00
parent 5a91de8c90
commit 14ae3ba7f9

View File

@ -1753,7 +1753,8 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
#else
case TARGET_NR_mmap:
#endif
ret = get_errno(target_mmap(arg1, arg2, arg3, arg4, arg5, arg6));
ret = get_errno(target_mmap(arg1, arg2, arg3, arg4, arg5,
arg6 << TARGET_PAGE_BITS));
break;
case TARGET_NR_munmap:
ret = get_errno(target_munmap(arg1, arg2));