[PATCH v4 0/6] linux-user: Rework get_elf_hwcap() and support MIPS Loongson 2F/3A

Philippe Mathieu-Daudé posted 6 patches 4 years, 11 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20201207224335.4030582-1-f4bug@amsat.org
Maintainers: Jiaxun Yang <jiaxun.yang@flygoat.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Aurelien Jarno <aurelien@aurel32.net>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
There is a newer version of this series
target/mips/cpu.h    |  1 +
linux-user/elfload.c | 43 ++++++++++++++++++++++++++++++++++++-------
2 files changed, 37 insertions(+), 7 deletions(-)
[PATCH v4 0/6] linux-user: Rework get_elf_hwcap() and support MIPS Loongson 2F/3A
Posted by Philippe Mathieu-Daudé 4 years, 11 months ago
Series now fully reviewed.

Since v3:
- Add CP0C0_AR_LENGTH definition (Richard)
- Fixed 3E -> 3A, Longsoon -> Loongson typos (Huacai)

Since v2:
- Use extract32() in GET_FEATURE_REG_EQU (rth)

Introduce the GET_FEATURE_REG_SET() and GET_FEATURE_REG_EQU()
macros to check if an instruction set is supported by a CPU
using CP0 read-only bits (instead of QEMU insn_flags which
is not always coherent - we might remove it soon).

Use these macros to test for MSA ASE and Release 6.

Update the ELF HWCAP bits and set the Loongson instructions
so we can run 2F/3A userland binaries.

Supersedes: <20201201192807.1094919-1-f4bug@amsat.org>

Philippe Mathieu-Daudé (6):
  linux-user/elfload: Move GET_FEATURE macro out of get_elf_hwcap() body
  linux-user/elfload: Rename MIPS GET_FEATURE() as GET_FEATURE_INSN()
  linux-user/elfload: Introduce MIPS GET_FEATURE_REG_SET() macro
  linux-user/elfload: Introduce MIPS GET_FEATURE_REG_EQU() macro
  linux-user/elfload: Update HWCAP bits from linux 5.7
  linux-user: Add support for MIPS Loongson 2F/3A

 target/mips/cpu.h    |  1 +
 linux-user/elfload.c | 43 ++++++++++++++++++++++++++++++++++++-------
 2 files changed, 37 insertions(+), 7 deletions(-)

-- 
2.26.2

Re: [PATCH v4 0/6] linux-user: Rework get_elf_hwcap() and support MIPS Loongson 2F/3A
Posted by Philippe Mathieu-Daudé 4 years, 11 months ago
On 12/7/20 11:43 PM, Philippe Mathieu-Daudé wrote:
> Series now fully reviewed.

Ping :)

> 
> Since v3:
> - Add CP0C0_AR_LENGTH definition (Richard)
> - Fixed 3E -> 3A, Longsoon -> Loongson typos (Huacai)
> 
> Since v2:
> - Use extract32() in GET_FEATURE_REG_EQU (rth)
> 
> Introduce the GET_FEATURE_REG_SET() and GET_FEATURE_REG_EQU()
> macros to check if an instruction set is supported by a CPU
> using CP0 read-only bits (instead of QEMU insn_flags which
> is not always coherent - we might remove it soon).
> 
> Use these macros to test for MSA ASE and Release 6.
> 
> Update the ELF HWCAP bits and set the Loongson instructions
> so we can run 2F/3A userland binaries.
> 
> Supersedes: <20201201192807.1094919-1-f4bug@amsat.org>
> 
> Philippe Mathieu-Daudé (6):
>   linux-user/elfload: Move GET_FEATURE macro out of get_elf_hwcap() body
>   linux-user/elfload: Rename MIPS GET_FEATURE() as GET_FEATURE_INSN()
>   linux-user/elfload: Introduce MIPS GET_FEATURE_REG_SET() macro
>   linux-user/elfload: Introduce MIPS GET_FEATURE_REG_EQU() macro
>   linux-user/elfload: Update HWCAP bits from linux 5.7
>   linux-user: Add support for MIPS Loongson 2F/3A
> 
>  target/mips/cpu.h    |  1 +
>  linux-user/elfload.c | 43 ++++++++++++++++++++++++++++++++++++-------
>  2 files changed, 37 insertions(+), 7 deletions(-)
>