Skip to content

target-arm: A64 decoder sets 3 and 4: everything but fp & simd

Peter Maydell qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest25 patches 18 repliesIn review
  2. v121 patches 48 repliesSuperseded

Changes in v2 from the cover letter

* finally got the ld/st pair decode correct
* cleaned up the other ld/st decode to use extract32 rather than bitops
* special case the simple-multiply in 3-src data ops
* move set_pc in mrs/msr down to the end-of-loop handling
* fix use of tcg temp over bblk end and possible gcc warning in cond-compare
* use new qemu ld ops in ldst excl
* revised version of sysregs support:
+ new .state field to specify whether register is AA64, AA32 or both
+ support shared register definitions between both states
+ new patch pulling the inner loop body of the 'define a reginfo' function out into its own function, for clarity
+ move the AA64 TLS register definitions to be together with the AA32 ones rather than in a completely different part of the file
* added a couple of minor bugfixes to aarch64 linux-user support found in testing (the clone bugfix in particular is necessary for fork())
* added a patch to add the aarch64 targets to the travis test matrix

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25target-arm: A64: add support for ld/st pairtarget-arm/translate-a64.c+277 -21 reply
2/25target-arm: A64: add support for ld/st unsigned immtarget-arm/translate-a64.c+88 -10 replies
3/25target-arm: A64: add support for ld/st with reg offsettarget-arm/translate-a64.c+143 -10 replies
4/25target-arm: A64: add support for ld/st with indextarget-arm/translate-a64.c+124 -10 replies
5/25target-arm: A64: add support for add, addi, sub, subitarget-arm/translate-a64.c+286 -60 replies
6/25target-arm: A64: add support for move wide instructionstarget-arm/translate-a64.c+49 -20 replies
7/25target-arm: A64: add support for 3 src data proc insnstarget-arm/translate-a64.c+95 -20 replies
8/25target-arm: A64: implement SVC, BRKtarget-arm/translate-a64.c+49 -20 replies
9/25target-arm: A64: Add decoder skeleton for FP instructionstarget-arm/translate-a64.c+169 -10 replies
10/25target-arm: A64: implement FMOVtarget-arm/translate-a64.c+85 -10 replies
11/25target-arm: Pull "add one cpreg to hashtable" into its own functiontarget-arm/helper.c+52 -421 reply
12/25target-arm: Update generic cpreg code for AArch64target-arm/cpu.h target-arm/helper.c target-arm/kvm-consts.h+207 -94 replies
13/25target-arm: Remove ARMCPU/CPUARMState from cpregs APIs used by decodertarget-arm/cpu.h target-arm/helper.c target-arm/translate-a64.c +2 more+17 -121 reply
14/25target-arm: A64: Implement MRS/MSR/SYS/SYSLtarget-arm/translate-a64.c+82 -300 replies
15/25target-arm: A64: Implement minimal set of EL0-visible sysregstarget-arm/cpu.h target-arm/helper.c target-arm/translate-a64.c+115 -15 replies
16/25target-arm: Widen thread-local register state fields to 64 bitslinux-user/aarch64/target_cpu.h linux-user/arm/target_cpu.h linux-user/main.c +2 more+36 -131 reply
17/25target-arm: A64: add support for add/sub with carrytarget-arm/translate-a64.c+103 -20 replies
18/25target-arm: A64: add support for conditional compare insnstarget-arm/translate-a64.c+60 -131 reply
19/25target-arm: aarch64: add support for ld littarget-arm/translate-a64.c+45 -20 replies
20/25target-arm: Widen exclusive-access support struct fields to 64 bitslinux-user/main.c target-arm/cpu.h target-arm/machine.c +1 more+64 -461 reply
21/25target-arm: A64: support for ld/st/cl exclusivelinux-user/main.c target-arm/translate-a64.c+277 -61 reply
22/25linux-user: AArch64: define TARGET_CLONE_BACKWARDSlinux-user/aarch64/syscall.h+1 -01 reply
23/25linux-user: AArch64: Use correct values for FPSR/FPCR in sigcontextlinux-user/signal.c+7 -31 reply
24/25.travis.yml: Add aarch64-* targets.travis.yml+1 -00 replies
25/25default-configs: Add config for aarch64-linux-userdefault-configs/aarch64-linux-user.mak+3 -00 replies

Reviews trailers per patch

24 of 25 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonPeter Crosthwaite
1/25R-b
2/25R-b
3/25R-b
4/25R-b
5/25R-b
6/25R-b
7/25R-b
8/25R-b
9/25R-b
10/25R-b
11/25R-b
12/25R-b R-b
13/25R-b
14/25R-b
15/25R-b R-b
16/25R-b
17/25R-b
18/25R-b
19/25R-b
20/25R-b
21/25R-b
22/25R-b
23/25R-b
24/25
25/25R-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 [Qemu-devel] [PATCH v2 00/25] target-arm: A64 decoder sets 3 and 4: everything but fp & simd

Hi; this is the second version of a64-third-fourth-set, which implements support for more or less all A64 instructions except
* FP [we support simple FP register load/store and
transfer to/from the general purpose registers]
* Neon
* system instructions (either ones only available to system mode or which only make sense for system mode like LDRT)
(There may also be one or two obscure gaps like the CRC32 instruction.)

Changes v1->v2:
* finally got the ld/st pair decode correct
* cleaned up the other ld/st decode to use extract32 rather than bitops
* special case the simple-multiply in 3-src data ops
* move set_pc in mrs/msr down to the end-of-loop handling
* fix use of tcg temp over bblk end and possible gcc warning in cond-compare
* use new qemu ld ops in ldst excl
* revised version of sysregs support:
+ new .state field to specify whether register is AA64, AA32 or both
+ support shared register definitions between both states
+ new patch pulling the inner loop body of the 'define a reginfo' function out into its own function, for clarity
+ move the AA64 TLS register definitions to be together with the AA32 ones rather than in a completely different part of the file
* added a couple of minor bugfixes to aarch64 linux-user support found in testing (the clone bugfix in particular is necessary for fork())
* added a patch to add the aarch64 targets to the travis test matrix

(That looks like a long list but it's mostly minor stuff apart from the adjustments to sysregs support.)

This patchset sits on top of upstream master (yay); git tree available at:
git://git.linaro.org/people/peter.maydell/qemu-arm.git a64-third-fourth-set
web UI:
https://git.linaro.org/people/peter.maydell/qemu-arm.git/shortlog/refs/heads/a64-third-fourth-set

(My plan for the next patchset is basically "softfloat fixes and all of FP"; we have working and tested code that basically just needs a touch more cleanup.)

thanks
-- PMM

Alex Bennée (6):
target-arm: A64: add support for ld/st unsigned imm
target-arm: A64: add support for ld/st with reg offset
target-arm: A64: add support for ld/st with index
target-arm: A64: add support for add, addi, sub, subi
target-arm: A64: add support for move wide instructions .travis.yml: Add aarch64-* targets

Alexander Graf (3):
target-arm: A64: add support for 3 src data proc insns
target-arm: A64: implement SVC, BRK
target-arm: aarch64: add support for ld lit

Claudio Fontana (3):
target-arm: A64: add support for add/sub with carry
target-arm: A64: add support for conditional compare insns
linux-user: AArch64: define TARGET_CLONE_BACKWARDS

Michael Matz (1):
target-arm: A64: support for ld/st/cl exclusive

Peter Maydell (11):
target-arm: A64: add support for ld/st pair
target-arm: A64: Add decoder skeleton for FP instructions
target-arm: A64: implement FMOV
target-arm: Pull "add one cpreg to hashtable" into its own function
target-arm: Update generic cpreg code for AArch64
target-arm: Remove ARMCPU/CPUARMState from cpregs APIs used by decoder
target-arm: A64: Implement MRS/MSR/SYS/SYSL
target-arm: A64: Implement minimal set of EL0-visible sysregs
target-arm: Widen thread-local register state fields to 64 bits
target-arm: Widen exclusive-access support struct fields to 64 bits
default-configs: Add config for aarch64-linux-user

Will Newton (1):
linux-user: AArch64: Use correct values for FPSR/FPCR in sigcontext

 .travis.yml                            |    1 +
 default-configs/aarch64-linux-user.mak |    3 +
 linux-user/aarch64/syscall.h           |    1 +
 linux-user/aarch64/target_cpu.h        |    5 +-
 linux-user/arm/target_cpu.h            |    2 +-
 linux-user/main.c                      |  154 ++-
 linux-user/signal.c                    |   10 +-
 target-arm/cpu.h                       |  109 +-
 target-arm/helper.c                    |  284 ++++-
 target-arm/kvm-consts.h                |   37 +
 target-arm/machine.c                   |   12 +-
 target-arm/translate-a64.c             | 1949 ++++++++++++++++++++++++++++++--
 target-arm/translate.c                 |   72 +-
 target-arm/translate.h                 |    2 +
 14 files changed, 2439 insertions(+), 202 deletions(-)
 create mode 100644 default-configs/aarch64-linux-user.mak
Signature · 1 line
1.8.5