Skip to content

target/arm: vfp feature and decodetree cleanup

Richard Henderson qemu-arm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest17 patches 11 repliesIn review
  2. v119 patches 24 repliesSuperseded

Changes in v2 from the cover letter

* Replace aa32_simd_r16 by aa32_vfp_simd.
* Add aa64_fp_simd, aa32_vfp.
* Improve aa64 has_vfp/has_neon check.
* Fix some "any" tests.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17target/arm: Add isar_feature_aa32_vfp_simdhw/intc/armv7m_nvic.c linux-user/arm/signal.c target/arm/arch_dump.c +4 more+37 -261 reply
2/17target/arm: Rename isar_feature_aa32_fpdp_v2target/arm/cpu.h target/arm/translate-vfp.inc.c+22 -220 replies
3/17target/arm: Add isar_feature_aa32_{fpsp_v2, fpsp_v3, fpdp_v3}target/arm/cpu.h+18 -00 replies
4/17target/arm: Add isar_feature_aa64_fp_simd, isar_feature_aa32_vfptarget/arm/cpu.c target/arm/cpu.h target/arm/machine.c+20 -51 reply
5/17target/arm: Improve ID_AA64PFR0 FP/SIMD validationtarget/arm/cpu.c+12 -114 replies
6/17target/arm: Perform fpdp_v2 check firsttarget/arm/translate-vfp.inc.c+71 -690 replies
7/17target/arm: Replace ARM_FEATURE_VFP3 checks with fp{sp, dp}_v3target/arm/translate-vfp.inc.c+8 -160 replies
8/17target/arm: Add missing checks for fpsp_v2target/arm/translate-vfp.inc.c+69 -90 replies
9/17target/arm: Replace ARM_FEATURE_VFP4 with isar_feature_aa32_simdfmactarget/arm/cpu.c target/arm/cpu.h target/arm/translate-vfp.inc.c +1 more+36 -61 reply
10/17target/arm: Remove ARM_FEATURE_VFP check from disas_vfp_insntarget/arm/translate.c+0 -40 replies
11/17target/arm: Move VLLDM and VLSTM to vfp.decodetarget/arm/translate-vfp.inc.c target/arm/translate.c target/arm/vfp.decode+50 -441 reply
12/17target/arm: Move the vfp decodetree calls next to the base isatarget/arm/translate.c+29 -541 reply
13/17linux-user/arm: Replace ARM_FEATURE_VFP* tests for HWCAPlinux-user/elfload.c+13 -101 reply
14/17target/arm: Remove ARM_FEATURE_VFP*target/arm/cpu.c target/arm/cpu.h target/arm/cpu64.c +2 more+0 -370 replies
15/17target/arm: Add formats for some vfp 2 and 3-register insnstarget/arm/vfp.decode+52 -820 replies
16/17target/arm: Split VFM decodetarget/arm/translate-vfp.inc.c target/arm/vfp.decode+55 -140 replies
17/17target/arm: Split VMINMAXNM decodetarget/arm/translate-vfp.inc.c target/arm/vfp-uncond.decode+44 -770 replies

Reviews trailers per patch

16 of 17 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéPeter Maydell
1/17R-b
2/17R-b
3/17R-b
4/17R-b
5/17
6/17R-b
7/17R-b
8/17R-b
9/17R-b
10/17R-b
11/17R-b
12/17R-b
13/17R-b
14/17R-b
15/17R-b
16/17R-b
17/17R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/17] target/arm: vfp feature and decodetree cleanup

The main goal of the patchset is to move the ARM_FEATURE_VFP test from outside of the disas_vfp_insn() to inside each of the trans_* functions, so that we get the proper ISA check for each case. At the end of that, it is easy to eliminate all of the remaining tests vs ARM_FEATURE_VFP* in favor of the preferred ISAR tests. Finally, there are a couple of cleanups to vfp.decode to make things a bit more legible.

Changes for v2:
* Replace aa32_simd_r16 by aa32_vfp_simd.
* Add aa64_fp_simd, aa32_vfp.
* Improve aa64 has_vfp/has_neon check.
* Fix some "any" tests.

r~

Richard Henderson (17):
target/arm: Add isar_feature_aa32_vfp_simd
target/arm: Rename isar_feature_aa32_fpdp_v2
target/arm: Add isar_feature_aa32_{fpsp_v2,fpsp_v3,fpdp_v3} target/arm: Add isar_feature_aa64_fp_simd, isar_feature_aa32_vfp target/arm: Improve ID_AA64PFR0 FP/SIMD validation target/arm: Perform fpdp_v2 check first
target/arm: Replace ARM_FEATURE_VFP3 checks with fp{sp,dp}_v3 target/arm: Add missing checks for fpsp_v2
target/arm: Replace ARM_FEATURE_VFP4 with isar_feature_aa32_simdfmac target/arm: Remove ARM_FEATURE_VFP check from disas_vfp_insn target/arm: Move VLLDM and VLSTM to vfp.decode target/arm: Move the vfp decodetree calls next to the base isa linux-user/arm: Replace ARM_FEATURE_VFP* tests for HWCAP target/arm: Remove ARM_FEATURE_VFP*
target/arm: Add formats for some vfp 2 and 3-register insns target/arm: Split VFM decode
target/arm: Split VMINMAXNM decode

 target/arm/cpu.h               |  57 ++++-
 target/arm/vfp-uncond.decode   |  12 +-
 target/arm/vfp.decode          | 153 +++++------
 hw/intc/armv7m_nvic.c          |  20 +-
 linux-user/arm/signal.c        |   4 +-
 linux-user/elfload.c           |  23 +-
 target/arm/arch_dump.c         |  11 +-
 target/arm/cpu.c               |  67 ++---
 target/arm/cpu64.c             |   3 -
 target/arm/helper.c            |   4 +-
 target/arm/kvm32.c             |   5 -
 target/arm/kvm64.c             |   1 -
 target/arm/m_helper.c          |  11 +-
 target/arm/machine.c           |   5 +-
 target/arm/translate-vfp.inc.c | 448 ++++++++++++++++++++-------------
 target/arm/translate.c         | 122 +++------
 16 files changed, 498 insertions(+), 448 deletions(-)
Signature · 1 line
2.20.1