Re: [PATCH for-7.0] linux-user: Fix syscall parameter handling for MIPS n32

2022-03-20 Thread Laurent Vivier
Le 20/03/2022 à 06:22, WANG Xuerui a écrit : The MIPS n32 ABI is basically n64 with the address space (i.e. pointer width) shrinked to 32 bits. Meanwhile the current code treats it as o32-like based on TARGET_ABI_BITS, which causes problems with n32 syscalls utilizing 64-bit offsets, like pread64

Re: [PATCH for-7.0] linux-user: Fix syscall parameter handling for MIPS n32

2022-03-20 Thread Philippe Mathieu-Daudé
On 20/3/22 06:22, WANG Xuerui wrote: The MIPS n32 ABI is basically n64 with the address space (i.e. pointer width) shrinked to 32 bits. Meanwhile the current code treats it as o32-like based on TARGET_ABI_BITS, which causes problems with n32 syscalls utilizing 64-bit offsets, like pread64, affect

Re: [PATCH for-7.0] linux-user: Fix syscall parameter handling for MIPS n32

2022-03-20 Thread Richard Henderson
On 3/19/22 22:22, WANG Xuerui wrote: The MIPS n32 ABI is basically n64 with the address space (i.e. pointer width) shrinked to 32 bits. Meanwhile the current code treats it as o32-like based on TARGET_ABI_BITS, which causes problems with n32 syscalls utilizing 64-bit offsets, like pread64, affect

[PATCH for-7.0] linux-user: Fix syscall parameter handling for MIPS n32

2022-03-19 Thread WANG Xuerui
The MIPS n32 ABI is basically n64 with the address space (i.e. pointer width) shrinked to 32 bits. Meanwhile the current code treats it as o32-like based on TARGET_ABI_BITS, which causes problems with n32 syscalls utilizing 64-bit offsets, like pread64, affecting most (if not all) recently built n3