[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/4] default-configs: Support o32 ABI with 64-bit MIPS CPUs
From: |
Maciej W. Rozycki |
Subject: |
Re: [PATCH 3/4] default-configs: Support o32 ABI with 64-bit MIPS CPUs |
Date: |
Thu, 19 Nov 2020 16:45:29 +0000 (GMT) |
On Thu, 19 Nov 2020, Philippe Mathieu-Daudé wrote:
> MIPS o32 ABI on 64-bit CPUs looks like a ILP32-on-64bit data
> model, allowing 64-bit arithmetic and data movement instructions.
>
> This is the default ABI used by the "Sony Linux Toolkit for
> Playstation 2".
Please don't, not at least with a generic configuration (i.e. make it
unambiguous that this is R5900-specific). This only works with R5900
because it does not implement the MIPS ISA correctly (e.g. see what $ra is
set to with JAL/JALR/etc. in the kernel mode), and it is not supported by
the standard Linux ABI. Use n32 instead, which has the same functionality
and is standard (and is also a better ABI in terms of performance).
You'd probably need to implement all the R5900 addressing quirks for your
proposed hack to match hardware, or otherwise you'll end up with emulation
that creates its own reality.
Maciej
- [PATCH 0/4] linux-user: Support o32 ABI with 64-bit MIPS CPUs, Philippe Mathieu-Daudé, 2020/11/19
- [PATCH 1/4] linux-user/mips64: Restore setup_frame() for o32 ABI, Philippe Mathieu-Daudé, 2020/11/19
- [PATCH 2/4] linux-user/mips64: Support o32 ABI syscalls, Philippe Mathieu-Daudé, 2020/11/19
- [PATCH 3/4] default-configs: Support o32 ABI with 64-bit MIPS CPUs, Philippe Mathieu-Daudé, 2020/11/19
- Re: [PATCH 3/4] default-configs: Support o32 ABI with 64-bit MIPS CPUs,
Maciej W. Rozycki <=
- [PATCH 4/4] RFC qemu-binfmt-conf.sh: Add MIPS64 o32 ABI, Philippe Mathieu-Daudé, 2020/11/19
- Re: [PATCH 0/4] linux-user: Support o32 ABI with 64-bit MIPS CPUs, no-reply, 2020/11/19