Skip to content

target-ppc: VSX Stage 4

Tom Musta qemu-devel 7 versions – Applied

Status from this message: Thanks, applied all to ppc-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest18 patches 5 repliesApplied
  2. v618 patches 6 repliesSuperseded
  3. v514 patches 1 replySuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v414 patches1 replySuperseded
v314 patches3 repliesSuperseded
v214 patches1 replySuperseded
v114 patches10 repliesSuperseded

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/18target-ppc: VSX Stage 4: Add VSX 2.07 Flagtarget-ppc/cpu.h target-ppc/translate_init.c+4 -20 replies
2/18target-ppc: VSX Stage 4: Refactor lxsdxtarget-ppc/translate.c+17 -140 replies
3/18target-ppc: VSX Stage 4: Add lxsiwax, lxsiwzx and lxsspxtarget-ppc/translate.c+14 -00 replies
4/18target-ppc: VSX Stage 4: Refactor stxsdxtarget-ppc/translate.c+15 -120 replies
5/18target-ppc: VSX Stage 4: Add stxsiwx and stxsspxtarget-ppc/translate.c+4 -00 replies
6/18target-ppc: VSX Stage 4: Add xsaddsp and xssubsptarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+22 -70 replies
7/18target-ppc: VSX Stage 4: Add xsmulsptarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+12 -40 replies
8/18target-ppc: VSX Stage 4: Add xsdivsptarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+12 -40 replies
9/18target-ppc: VSX Stage 4: Add xsresptarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+13 -40 replies
10/18target-ppc: VSX Stage 4: Add xssqrtsptarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+12 -40 replies
11/18target-ppc: VSX Stage 4: add xsrsqrtesptarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+12 -40 replies
12/18target-ppc: VSX Stage 4: Add Scalar SP Fused Multiply-Addstarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+77 -290 replies
13/18target-ppc: VSX Stage 4: Add xscvsxdsp and xscvuxdsptarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+22 -110 replies
14/18target-ppc: VSX Stage 4: Add xxleqv, xxlnand and xxlorctarget-ppc/translate.c+6 -00 replies
15/18target-ppc: Move To/From VSR Instructionstarget-ppc/translate.c+59 -01 reply
16/18target-ppc: Floating Merge Word Instructionstarget-ppc/translate.c+28 -01 reply
17/18target-ppc: Scalar Round to Single Precisiontarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+29 -01 reply
18/18target-ppc: Scalar Non-Signalling Conversionstarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+22 -01 reply

Reviews trailers per patch

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

PatchRichard Henderson
1/18R-b
2/18R-b
3/18R-b
4/18R-b
5/18R-b
6/18R-b
7/18R-b
8/18R-b
9/18R-b
10/18R-b
11/18R-b
12/18R-b
13/18R-b
14/18R-b
15/18R-b
16/18R-b
17/18R-b
18/18R-b

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

Read the v7 thread

Cover letter [Qemu-devel] [V7 PATCH 00/18] target-ppc: VSX Stage 4

This is the fourth and final series of patches that add emulation support to QEMU for the PowerPC Vector Scalar Extension (VSX).

This series adds the instructions that were newly introduced with Power ISA V2.07. This includes 3 scalar load instructions, 2 scalar store instructions, 7 standard single precision scalar arithmetic instructions, 8 scalar single precision fused multiply/add instructions, two integer-to-single-precision conversion instructions and 3 vector logical instructions.

The single-precision scalar arithmetic instructions all interpret the most significant 64 bits of a VSR as a single precision floating point number stored in double precision format (similar to the standard PowerPC floating point single precision instructions). Thus a common theme in the supporting code is rounding of an intermediate double-precision number to single precision.

V2: (a) Changed the rounding to single precision to reuse the existing helper_frsp() routine. (b) Re-implemented the fused multiply/add instructions to use float32_muladd instead of float64_muladd, which avoids subtle rounding errors.

V3: Re-implemented fused multiply/add per clarification from Richard Henderson.

V4: Changed fused multiply/add to use helper_frsp (inadvertently re-injected when I used an earlier patch).

V5: Fixed tcg compilation problems.

V6: Added instructions that were previously missed.

V7: Optimized m[ft]vsrd, fmrgow instructions. Changed signatures of some scalar helpers.

Tom Musta (18):
target-ppc: VSX Stage 4: Add VSX 2.07 Flag
target-ppc: VSX Stage 4: Refactor lxsdx
target-ppc: VSX Stage 4: Add lxsiwax, lxsiwzx and lxsspx
target-ppc: VSX Stage 4: Refactor stxsdx
target-ppc: VSX Stage 4: Add stxsiwx and stxsspx
target-ppc: VSX Stage 4: Add xsaddsp and xssubsp
target-ppc: VSX Stage 4: Add xsmulsp
target-ppc: VSX Stage 4: Add xsdivsp
target-ppc: VSX Stage 4: Add xsresp
target-ppc: VSX Stage 4: Add xssqrtsp
target-ppc: VSX Stage 4: add xsrsqrtesp
target-ppc: VSX Stage 4: Add Scalar SP Fused Multiply-Adds
target-ppc: VSX Stage 4: Add xscvsxdsp and xscvuxdsp
target-ppc: VSX Stage 4: Add xxleqv, xxlnand and xxlorc
target-ppc: Move To/From VSR Instructions
target-ppc: Floating Merge Word Instructions
target-ppc: Scalar Round to Single Precision
target-ppc: Scalar Non-Signalling Conversions

 target-ppc/cpu.h            |    4 +-
 target-ppc/fpu_helper.c     |  222 ++++++++++++++++++++++++++++++-------------
 target-ppc/helper.h         |   21 ++++
 target-ppc/translate.c      |  224 ++++++++++++++++++++++++++++++++++++++-----
 target-ppc/translate_init.c |    2 +-
 5 files changed, 379 insertions(+), 94 deletions(-)