qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-user: sparc64: Use correct target SHMLBA in shmat()

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 <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

authored by

Peter Maydell and committed by
Riku Voipio
a7c65cbf e21d6957

+7
+7
linux-user/sparc64/target_syscall.h
··· 23 23 #define TARGET_MLOCKALL_MCL_CURRENT 0x2000 24 24 #define TARGET_MLOCKALL_MCL_FUTURE 0x4000 25 25 26 + #define TARGET_FORCE_SHMLBA 27 + 28 + static inline abi_ulong target_shmlba(CPUSPARCState *env) 29 + { 30 + return MAX(TARGET_PAGE_SIZE, 16 * 1024); 31 + } 32 + 26 33 #endif /* SPARC64_TARGET_SYSCALL_H */