linux-user: Fix more MIPS n32 syscall ABI issues
commiteeed22916b8292b12d21e46ba9d3a383d669d9ff
authorWANG Xuerui <xen0n@gentoo.org>
Thu, 6 Oct 2022 08:55:00 +0000 (6 16:55 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 21 Oct 2022 14:37:36 +0000 (21 16:37 +0200)
tree8c0823b61a3d2e234282f747cef3800fab72eb6a
parent0529245488865038344d64fff7ee05864d3d17f6
linux-user: Fix more MIPS n32 syscall ABI issues

In commit 80f0fe3a85 ("linux-user: Fix syscall parameter handling for
MIPS n32") the ABI problem regarding offset64 on MIPS n32 was fixed,
but still some cases remain where the n32 is incorrectly treated as any
other 32-bit ABI that passes 64-bit arguments in pairs of GPRs. Fix by
excluding TARGET_ABI_MIPSN32 from various TARGET_ABI_BITS == 32 checks.

Closes: https://gitlab.com/qemu-project/qemu/-/issues/1238
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Andreas K. Hüttel <dilfridge@gentoo.org>
Cc: Joshua Kinard <kumba@gentoo.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Tested-by: Andreas K. Huettel <dilfridge@gentoo.org>
Message-Id: <20221006085500.290341-1-xen0n@gentoo.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c