mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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: d971040c2d
("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>
This commit is contained in:
parent
e8b609ac35
commit
d95fd9838b
3 changed files with 9 additions and 5 deletions
|
@ -3971,7 +3971,7 @@ print_mmap(CPUArchState *cpu_env, const struct syscallname *name,
|
|||
{
|
||||
return print_mmap_both(cpu_env, name, arg0, arg1, arg2, arg3,
|
||||
arg4, arg5,
|
||||
#if defined(TARGET_NR_mmap2)
|
||||
#ifdef TARGET_ARCH_WANT_SYS_OLD_MMAP
|
||||
true
|
||||
#else
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue