]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: Fix strace output for s390x mmap()
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 20 Nov 2024 21:26:44 +0000 (22:26 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 24 Nov 2024 20:19:04 +0000 (23:19 +0300)
commit6979e4f558e20bc51d44dfe49d501d21d3d17a30
tree827ba5fe5aca5b60fed7324b82ca401b823ab851
parent73a5dffbe16d37fa1df2188a9add995023070c54
linux-user: Fix strace output for s390x mmap()

print_mmap() assumes that mmap() receives arguments via memory if
mmap2() is present. s390x (as opposed to s390) does not fit this
pattern: it does not have mmap2(), but mmap() still receives arguments
via memory.

Fix by sharing the detection logic between syscall.c and strace.c.

Cc: qemu-stable@nongnu.org
Fixes: d971040c2d16 ("linux-user: Fix strace output for old_mmap")
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20241120212717.246186-1-iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit d95fd9838b540e69da9b07538ec8ad6ab9eab260)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: compensate for chris architecture removal by v9.1.0-282-gbff4b02ca1f4
 "linux-user: Remove support for CRIS target")
linux-user/strace.c
linux-user/syscall.c
linux-user/syscall_defs.h