From fe080593dd4f2c2763f7c27a3ba6e69b64fe3b0c Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Thu, 15 Dec 2022 08:27:46 +0100 Subject: linux-user: Add translation for argument of msync() msync() uses the flags MS_ASYNC, MS_INVALIDATE and MS_SYNC, which differ between platforms, specifcally on alpha and hppa. Add a target to host translation for those and wire up a nicer strace output. This fixes the testsuite of the macaulay2 debian package with a hppa-linux guest on a x86-64 host. Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier Message-Id: Signed-off-by: Laurent Vivier --- linux-user/generic/target_mman.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'linux-user/generic') diff --git a/linux-user/generic/target_mman.h b/linux-user/generic/target_mman.h index 1436a3c..32bf1a5 100644 --- a/linux-user/generic/target_mman.h +++ b/linux-user/generic/target_mman.h @@ -89,4 +89,17 @@ #define TARGET_MADV_DONTNEED_LOCKED 24 #endif + +#ifndef TARGET_MS_ASYNC +#define TARGET_MS_ASYNC 1 +#endif + +#ifndef TARGET_MS_INVALIDATE +#define TARGET_MS_INVALIDATE 2 +#endif + +#ifndef TARGET_MS_SYNC +#define TARGET_MS_SYNC 4 +#endif + #endif -- cgit v1.1