Skip to content

AArch64 TCG emulation support

Alexander Graf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest60 patches 54 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/60arm: Use symbolic device names for vfp cmptarget-arm/helper.c+26 -240 replies
2/60arm: Give the fpscr rounding modes namestarget-arm/cpu.h target-arm/helper.c+9 -40 replies
3/60arm: Split VFP cmp from FPSCR settingtarget-arm/helper.c target-arm/helper.h target-arm/translate.c+24 -102 replies
4/60arm: Add AArch64 disassembler stubdisas.c disas/Makefile.objs disas/aarch64.c +1 more+38 -11 reply
5/60softfloat: Add stubs for int16 conversionfpu/softfloat.c include/fpu/softfloat.h+25 -00 replies
6/60AArch64: Add set_pc cpu methodtarget-arm/cpu64.c+8 -00 replies
7/60ARM: Add 64bit VFP handlingtarget-arm/helper.c target-arm/helper.h+33 -150 replies
8/60AArch64: Add support to print VFP registers in CPUtarget-arm/translate-a64.c+15 -00 replies
9/60AArch64: Add b and bl handlingtarget-arm/translate-a64.c+61 -02 replies
10/60AArch64: Add handling for br instructionstarget-arm/translate-a64.c+29 -01 reply
11/60AArch64: Add STP instruction emulationtarget-arm/translate-a64.c+263 -01 reply
12/60AArch64: Add ldarx style instruction emulationtarget-arm/translate-a64.c+37 -10 replies
13/60AArch64: Add stubs for a64 specific helperstarget-arm/Makefile.objs target-arm/helper-a64.c target-arm/helper-a64.h +1 more+50 -10 replies
14/60AArch64: Add orr instruction emulationtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+149 -014 replies
15/60AArch64: Add add instruction family emulationtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+238 -01 reply
16/60AArch64: Add emulation for SIMD ld/st multipletarget-arm/translate-a64.c+91 -00 replies
17/60AArch64: Add dup GPR->Vec instruction emulationtarget-arm/translate-a64.c+55 -01 reply
18/60AArch64: Add umov instruction emulationtarget-arm/translate-a64.c+45 -01 reply
19/60AArch64: Add ins GPR->Vec instruction emulationtarget-arm/translate-a64.c+39 -00 replies
20/60AArch64: Add SIMD ORR family instruction emulationtarget-arm/translate-a64.c+66 -01 reply
21/60AArch64: Convert SIMD load/store to common functiontarget-arm/translate-a64.c+42 -570 replies
22/60AArch64: Add AdvSIMD scalar three same group handlingtarget-arm/translate-a64.c+53 -01 reply
23/60AArch64: Add AdvSIMD modified immediate group handlingtarget-arm/translate-a64.c+129 -01 reply
24/60AArch64: Add SIMD ushll instruction emulationtarget-arm/translate-a64.c+52 -01 reply
25/60AArch64: Add SIMD shl instruction emulationtarget-arm/translate-a64.c+50 -00 replies
26/60AArch64: Add ADR instruction emulationtarget-arm/translate-a64.c+24 -05 replies
27/60AArch64: Add addi instruction emulationtarget-arm/translate-a64.c+50 -00 replies
28/60AArch64: Add movi instruction emulationtarget-arm/translate-a64.c+45 -01 reply
29/60AArch64: Add orri instruction emulationtarget-arm/translate-a64.c+95 -14 replies
30/60AArch64: Add extr instruction emulationtarget-arm/translate-a64.c+35 -01 reply
31/60AArch64: Add bfm family instruction emulationtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+95 -11 reply
32/60AArch64: Add svc instruction emulationtarget-arm/translate-a64.c target-arm/translate.c target-arm/translate.h+18 -50 replies
33/60AArch64: Add bc instruction emulationtarget-arm/translate-a64.c+44 -00 replies
34/60AArch64: Add b.cond instruction emulationtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+70 -00 replies
35/60AArch64: Add mrs instruction emulationtarget-arm/translate-a64.c+33 -00 replies
36/60AArch64: Add msr instruction emulationtarget-arm/translate-a64.c+27 -00 replies
37/60AArch64: Add hint instruction emulationtarget-arm/translate-a64.c+2 -00 replies
38/60AArch64: Add stub barrier instruction emulationtarget-arm/translate-a64.c+2 -00 replies
39/60AArch64: Add stub sys instruction emulationtarget-arm/translate-a64.c+10 -00 replies
40/60AArch64: Add tbz instruction emulationtarget-arm/translate-a64.c+40 -01 reply
41/60AArch64: Add ldr/str instruction family emulationtarget-arm/translate-a64.c+124 -00 replies
42/60AArch64: Add literal ld instruction emulationtarget-arm/translate-a64.c+37 -10 replies
43/60AArch64: Add cinc instruction emulationtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+52 -01 reply
44/60AArch64: Add division instruction family emulationtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+61 -01 reply
45/60AArch64: Add shift instruction family emulationtarget-arm/translate-a64.c+20 -00 replies
46/60AArch64: Add rev instruction family emulationtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+58 -01 reply
47/60AArch64: Add clz instruction emulationtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+37 -00 replies
48/60AArch64: Add 0x1a encoding of add instructionstarget-arm/translate-a64.c+2 -00 replies
49/60AArch64: Add "Data-processing (3 source)" instructiontarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+106 -00 replies
50/60AArch64: Add "Floating-point<->fixed-pointtarget-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+196 -04 replies
51/60AArch64: Add fmov (scalar, immediate) instructiontarget-arm/translate-a64.c+36 -00 replies
52/60AArch64: Add "Floating-point<->integer conversions"target-arm/translate-a64.c+61 -00 replies
53/60AArch64: Add "Floating-point compare" instructiontarget-arm/translate-a64.c+66 -00 replies
54/60AArch64: Add "Floating-point data-processing (1target-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+85 -00 replies
55/60AArch64: Add "Floating-point data-processing (1target-arm/helper-a64.c target-arm/helper-a64.h target-arm/translate-a64.c+75 -00 replies
56/60AArch64: Add "Floating-point data-processing (2target-arm/translate-a64.c+57 -00 replies
57/60AArch64: Add "Floating-point data-processing (2target-arm/translate-a64.c+52 -00 replies
58/60AArch64: Add "ADD (vector)" instruction emulationtarget-arm/translate-a64.c+35 -00 replies
59/60AArch64: Add "Floating-point data-processing (3target-arm/translate-a64.c+58 -01 reply
60/60AArch64: Add "Floating-point data-processing (3target-arm/translate-a64.c+46 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/60] AArch64 TCG emulation support

Howdy,

This is the first batch of patches to implement AArch64 instruction emulation in QEMU. It implements enough to execute simple AArch64 programs in linux-user mode.

We still have quite a big number of patches outstanding that will come after this initial set, both in linux-user code as well as in the AArch64 instruction emulator. But this series is already quite big, so let's get this one through first.

If you need a rootfs to try this out on, I recommend using our openSUSE 12.3 tarball:

http://download.opensuse.org/repositories/devel:/ARM:/AArch64:/12.3/images/

Alex

Alexander Graf (60):
arm: Use symbolic device names for vfp cmp
arm: Give the fpscr rounding modes names
arm: Split VFP cmp from FPSCR setting
arm: Add AArch64 disassembler stub
softfloat: Add stubs for int16 conversion
AArch64: Add set_pc cpu method
ARM: Add 64bit VFP handling
AArch64: Add support to print VFP registers in CPU dump
AArch64: Add b and bl handling
AArch64: Add handling for br instructions
AArch64: Add STP instruction emulation
AArch64: Add ldarx style instruction emulation
AArch64: Add stubs for a64 specific helpers
AArch64: Add orr instruction emulation
AArch64: Add add instruction family emulation
AArch64: Add emulation for SIMD ld/st multiple
AArch64: Add dup GPR->Vec instruction emulation
AArch64: Add umov instruction emulation
AArch64: Add ins GPR->Vec instruction emulation
AArch64: Add SIMD ORR family instruction emulation
AArch64: Convert SIMD load/store to common function
AArch64: Add AdvSIMD scalar three same group handling
AArch64: Add AdvSIMD modified immediate group handling
AArch64: Add SIMD ushll instruction emulation
AArch64: Add SIMD shl instruction emulation
AArch64: Add ADR instruction emulation
AArch64: Add addi instruction emulation
AArch64: Add movi instruction emulation
AArch64: Add orri instruction emulation
AArch64: Add extr instruction emulation
AArch64: Add bfm family instruction emulation
AArch64: Add svc instruction emulation
AArch64: Add bc instruction emulation
AArch64: Add b.cond instruction emulation
AArch64: Add mrs instruction emulation
AArch64: Add msr instruction emulation
AArch64: Add hint instruction emulation
AArch64: Add stub barrier instruction emulation
AArch64: Add stub sys instruction emulation
AArch64: Add tbz instruction emulation
AArch64: Add ldr/str instruction family emulation
AArch64: Add literal ld instruction emulation
AArch64: Add cinc instruction emulation
AArch64: Add division instruction family emulation
AArch64: Add shift instruction family emulation
AArch64: Add rev instruction family emulation
AArch64: Add clz instruction emulation
AArch64: Add 0x1a encoding of add instructions
AArch64: Add "Data-processing (3 source)" instruction family
emulation
AArch64: Add "Floating-point<->fixed-point conversions" category
emulation
AArch64: Add fmov (scalar, immediate) instruction emulation
AArch64: Add "Floating-point<->integer conversions" instruction
family emulation
AArch64: Add "Floating-point compare" instruction family emulation
AArch64: Add "Floating-point data-processing (1 source)" (32 bit)
instruction family emulation
AArch64: Add "Floating-point data-processing (1 source)" (64 bit)
instruction family emulation
AArch64: Add "Floating-point data-processing (2 source)" (32 bit)
instruction family emulation
AArch64: Add "Floating-point data-processing (2 source)" (64 bit)
instruction family emulation
AArch64: Add "ADD (vector)" instruction emulation
AArch64: Add "Floating-point data-processing (3 source)" (32 bit)
instruction family emulation
AArch64: Add "Floating-point data-processing (3 source)" (64 bit)
instruction family emulation

 disas.c                    |    6 +-
 disas/Makefile.objs        |    1 +
 disas/aarch64.c            |   31 +
 fpu/softfloat.c            |   21 +
 include/disas/bfd.h        |    1 +
 include/fpu/softfloat.h    |    4 +
 target-arm/Makefile.objs   |    2 +-
 target-arm/cpu.h           |    5 +
 target-arm/cpu64.c         |    8 +
 target-arm/helper-a64.c    |  309 +++++
 target-arm/helper-a64.h    |   35 +
 target-arm/helper.c        |  108 +-
 target-arm/helper.h        |   24 +-
 target-arm/translate-a64.c | 2915 +++++++++++++++++++++++++++++++++++++++++++-
 target-arm/translate.c     |   13 +-
 target-arm/translate.h     |    5 +
 16 files changed, 3424 insertions(+), 64 deletions(-)
 create mode 100644 disas/aarch64.c
 create mode 100644 target-arm/helper-a64.c
 create mode 100644 target-arm/helper-a64.h
Signature · 1 line
1.7.12.4