[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 08/22] linux-user: sparc64: Use correct target SHM
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PULL v2 08/22] linux-user: sparc64: Use correct target SHMLBA in shmat() |
Date: |
Tue, 18 Oct 2016 16:21:36 +0300 |
From: Peter Maydell <address@hidden>
In commit 40df8c0c0722 support was added for target-specific
handling of SHMLBA. Unfortunately the sparc64-specific part
of the change got lost somewhere between the patch being
posted to the list and going into master:
http://patchwork.ozlabs.org/patch/646980/
http://patchwork.ozlabs.org/patch/673339/
Add the accidentally-dropped code.
Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/sparc64/target_syscall.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/linux-user/sparc64/target_syscall.h
b/linux-user/sparc64/target_syscall.h
index b7e3bf8..2cbbaae 100644
--- a/linux-user/sparc64/target_syscall.h
+++ b/linux-user/sparc64/target_syscall.h
@@ -23,4 +23,11 @@ struct target_pt_regs {
#define TARGET_MLOCKALL_MCL_CURRENT 0x2000
#define TARGET_MLOCKALL_MCL_FUTURE 0x4000
+#define TARGET_FORCE_SHMLBA
+
+static inline abi_ulong target_shmlba(CPUSPARCState *env)
+{
+ return MAX(TARGET_PAGE_SIZE, 16 * 1024);
+}
+
#endif /* SPARC64_TARGET_SYSCALL_H */
--
2.1.4
- [Qemu-devel] [PULL v2 00/22] linux-user changes, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 03/22] linux-user: Fix mq_open() syscall support, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 04/22] linux-user: Fix msgrcv() and msgsnd() syscalls support, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 02/22] linux-user: Add support for ustat() syscall, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 01/22] linux-user: Add support for adjtimex() syscall, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 07/22] linux-user: Remove a duplicate item from strace.list, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 05/22] linux-user: Fix socketcall() syscall support, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 11/22] linux-user: Don't use alloca() for epoll_wait's epoll event array, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 08/22] linux-user: sparc64: Use correct target SHMLBA in shmat(),
riku . voipio <=
- [Qemu-devel] [PULL v2 12/22] linux-user: use libc wrapper instead of direct mremap syscall, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 13/22] linux-user: Fix definition of target_sigevent for 32-bit guests, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 09/22] linux-user: add kcmp() syscall, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 16/22] linux-user: Update mips_syscall_args[] array in main.c, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 06/22] linux-user: Fix syslog() syscall support, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 10/22] linux-user: add RTA_PRIORITY in netlink, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 14/22] linux-user: Add support for clock_adjtime() syscall, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 19/22] linux-user: Fix fadvise64() syscall support for Mips32, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 15/22] linux-user: Add support for syncfs() syscall, riku . voipio, 2016/10/18
- [Qemu-devel] [PULL v2 17/22] linux-user: Update ioctls definitions for Mips32, riku . voipio, 2016/10/18