Skip to content

linux-user: Rework get_elf_hwcap() and support MIPS Loongson 2F/3A

Philippe Mathieu-Daudé qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest posting 2/26 patches 2 repliesIn review
  2. v5 posting 1/24 of 7 patches 1 replySuperseded
  3. v46 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v36 patches5 repliesSuperseded
v26 patches5 repliesSuperseded

Changes in v5 from the cover letter

- Fixed yet another typo...

Patches in v5 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6linux-user/elfload: Move GET_FEATURE macro out of get_elf_hwcap() bodylinux-user/elfload.c+5 -50 replies
2/6linux-user/elfload: Rename MIPS GET_FEATURE() as GET_FEATURE_INSN()linux-user/elfload.c+4 -40 replies
3/6linux-user/elfload: Introduce MIPS GET_FEATURE_REG_SET() macrolinux-user/elfload.c+5 -10 replies
4/6linux-user/elfload: Introduce MIPS GET_FEATURE_REG_EQU() macrolinux-user/elfload.c target/mips/cpu.h+12 -10 replies
5/6linux-user/elfload: Update HWCAP bits from linux 5.7linux-user/elfload.c+13 -00 replies
6/6linux-user: Add support for MIPS Loongson 2F/3Alinux-user/elfload.c+2 -01 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonHuacai Chen
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

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

Series now fully reviewed.

Since v5:
- Dropped MAINTAINERS patch =)

Since v4:
- Fixed yet another typo...

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.

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(-)
Signature · 1 line
2.26.2