Skip to content

target-ppc: Base ISA V2.06 for Power7/Power8

Tom Musta qemu-devel 4 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. v4 Latest22 patches 13 repliesApplied
  2. v314 patches 23 repliesSuperseded
  3. v218 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v118 patches18 repliesSuperseded

Changes in v4 from the cover letter

- Split the single flag (PPC2_ISA206) into multiple flags per request from Alex Graf.
- Recoded divwe[u] instructions as a helper.
- Correct tcg-debug compilation errors.
- Corrected fcfid[u]s helpers to avoid double rounding.
- Corrected frin to use "nearest ties away" rounding mode instead of "nearest ties to even".
- Updated (new) Power7+ model to include all newly added instruction flags.
- Assorted comments from Richard Henderson, Peter Maydell and Scott Wood.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/22target-ppc: Add ISA2.06 bpermd Instructiontarget-ppc/cpu.h target-ppc/helper.h target-ppc/int_helper.c +2 more+41 -50 replies
2/22target-ppc: Add Flag for ISA2.06 Divide Extended Instructionstarget-ppc/cpu.h target-ppc/translate_init.c+7 -41 reply
3/22target-ppc: Add ISA2.06 divdeu[o] Instructionsinclude/qemu/host-utils.h target-ppc/helper.h target-ppc/int_helper.c +2 more+101 -00 replies
4/22target-ppc: Add ISA2.06 divde[o] Instructionsinclude/qemu/host-utils.h target-ppc/helper.h target-ppc/int_helper.c +2 more+79 -10 replies
5/22target-ppc: Add ISA 2.06 divweu[o] Instructionstarget-ppc/helper.h target-ppc/int_helper.c target-ppc/translate.c+37 -01 reply
6/22target-ppc: Add ISA 2.06 divwe[o] Instructionstarget-ppc/helper.h target-ppc/int_helper.c target-ppc/translate.c+37 -01 reply
7/22target-ppc: Add Flag for ISA2.06 Atomic Instructionstarget-ppc/cpu.h target-ppc/translate_init.c+10 -41 reply
8/22target-ppc: Add ISA2.06 lbarx, lharx Instructionstarget-ppc/translate.c+24 -260 replies
9/22target-ppc: Add ISA 2.06 stbcx. and sthcx. Instructionstarget-ppc/translate.c+44 -470 replies
10/22target-ppc: Add Flag for ISA V2.06 Floating Point Conversiontarget-ppc/cpu.h target-ppc/translate_init.c+7 -41 reply
11/22target-ppc: Add ISA2.06 Float to Integer Instructionstarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+49 -870 replies
12/22target-ppc: Add ISA 2.06 fcfid[u][s] Instructionstarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+31 -91 reply
13/22softfloat: Fix exception flag handling for float32_to_float16()fpu/softfloat.c+66 -390 replies
14/22softfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormalfpu/softfloat.c+125 -840 replies
15/22softfloat: Refactor code handling various rounding modesfpu/softfloat.c+241 -1640 replies
16/22softfloat: Add support for ties-away roundingfpu/softfloat.c include/fpu/softfloat.h+56 -10 replies
17/22target-ppc: Fix and enable fri[mnpz]target-ppc/fpu_helper.c target-ppc/translate_init.c+14 -73 replies
18/22target-ppc: Add Flag for Power ISA V2.06 Floating Point Test Instructionstarget-ppc/cpu.h target-ppc/translate_init.c+9 -41 reply
19/22target-ppc: Add ISA 2.06 ftdiv Instructiontarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+61 -101 reply
20/22target-ppc: Add ISA 2.06 ftsqrttarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+42 -01 reply
21/22target-ppc: Enable frsqrtes on Power7 and Power8target-ppc/translate_init.c+3 -00 replies
22/22target-ppc: Add ISA2.06 lfiwzx Instructiontarget-ppc/translate.c+15 -00 replies

Reviews trailers per patch

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

PatchRichard HendersonTom Musta
1/22R-b
2/22R-b
3/22R-b
4/22R-b
5/22R-b
6/22R-b
7/22R-b
8/22R-b
9/22R-b
10/22R-b
11/22R-b
12/22R-b
13/22R-b R-b
14/22R-b R-b
15/22R-b R-b
16/22R-b R-b
17/22R-b
18/22R-b
19/22R-b
20/22R-b
21/22R-b
22/22R-b

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

Read the v4 thread

Cover letter [Qemu-devel] [V4 PATCH 00/22] target-ppc: Base ISA V2.06 for Power7/Power8

The QEMU emulation models for Power7 and Power8 are still missing some of the base instructions that were introduced in Power ISA 2.06 and even a few that were introduced prior to that.

This patch series gets these models caught up with respect to the base 2.06 ISA. That is, the Book I and Book II instructions for the branch, fixed point and floating point units will be completed with this series. Decimal floating point is not addressed in this series, nor are the base ISA 2.07 changes for the Power8 model.

In some cases, existing instructions are re-implemented using common macros, thus eliminating some redundant code. The patch series eliminates almost half as much code as it adds.

Additionally, some bugs in the common floating point library (softfloat) are fixed.

V2: Addressing comments from Richard Henderson. Fixed corner case bug in divweu.

V3: Addressing comments from Peter Maydell. softloat changes have been moved back to the VSX stage 3 patch series.

V4:
- Split the single flag (PPC2_ISA206) into multiple flags per request from Alex Graf.
- Recoded divwe[u] instructions as a helper.
- Correct tcg-debug compilation errors.
- Corrected fcfid[u]s helpers to avoid double rounding.
- Corrected frin to use "nearest ties away" rounding mode instead of "nearest ties to even".
- Updated (new) Power7+ model to include all newly added instruction flags.
- Assorted comments from Richard Henderson, Peter Maydell and Scott Wood.

Tom Musta (22):
target-ppc: Add ISA2.06 bpermd Instruction
target-ppc: Add Flag for ISA2.06 Divide Extended Instructions
target-ppc: Add ISA2.06 divdeu[o] Instructions
target-ppc: Add ISA2.06 divde[o] Instructions
target-ppc: Add ISA 2.06 divweu[o] Instructions
target-ppc: Add ISA 2.06 divwe[o] Instructions
target-ppc: Add Flag for ISA2.06 Atomic Instructions
target-ppc: Add ISA2.06 lbarx, lharx Instructions
target-ppc: Add ISA 2.06 stbcx. and sthcx. Instructions
target-ppc: Add Flag for ISA V2.06 Floating Point Conversion
target-ppc: Add ISA2.06 Float to Integer Instructions
target-ppc: Add ISA 2.06 fcfid[u][s] Instructions
softfloat: Fix exception flag handling for float32_to_float16()
softfloat: Factor out RoundAndPackFloat16 and
NormalizeFloat16Subnormal
softfloat: Refactor code handling various rounding modes
softfloat: Add support for ties-away rounding
target-ppc: Fix and enable fri[mnpz]
target-ppc: Add Flag for Power ISA V2.06 Floating Point Test
Instructions
target-ppc: Add ISA 2.06 ftdiv Instruction
target-ppc: Add ISA 2.06 ftsqrt
target-ppc: Enable frsqrtes on Power7 and Power8
target-ppc: Add ISA2.06 lfiwzx Instruction

 fpu/softfloat.c             |  657 ++++++++++++++++++++++++++++---------------
 include/fpu/softfloat.h     |    3 +-
 include/qemu/host-utils.h   |   28 ++
 target-ppc/cpu.h            |   15 +-
 target-ppc/fpu_helper.c     |  255 +++++++++--------
 target-ppc/helper.h         |   15 +
 target-ppc/int_helper.c     |  133 +++++++++
 target-ppc/translate.c      |  243 +++++++++++-----
 target-ppc/translate_init.c |   23 ++-
 util/host-utils.c           |   75 +++++
 10 files changed, 1025 insertions(+), 422 deletions(-)