From: Richard Henderson Date: Sat, 28 Jan 2017 20:54:20 +0000 (-0800) Subject: linux-user: Add MMAP_SHIFT for openrisc X-Git-Tag: v2.9.0-rc0~94^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab9023385576389e68b937d744de8ef8a0a4dc7a;p=thirdparty%2Fqemu.git linux-user: Add MMAP_SHIFT for openrisc The page size on openrisc is 8k. Sync the shift required for the mmap2 syscall. Signed-off-by: Richard Henderson --- diff --git a/linux-user/openrisc/target_syscall.h b/linux-user/openrisc/target_syscall.h index 9d3380f9a8d..03104f80afc 100644 --- a/linux-user/openrisc/target_syscall.h +++ b/linux-user/openrisc/target_syscall.h @@ -31,4 +31,6 @@ struct target_pt_regs { #define TARGET_MLOCKALL_MCL_CURRENT 1 #define TARGET_MLOCKALL_MCL_FUTURE 2 +#define MMAP_SHIFT TARGET_PAGE_BITS + #endif /* OPENRISC_TARGET_SYSCALL_H */