target-ppc: Base ISA V2.06 for Power7/Power8
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
- v4 Latest22 patches 13 repliesApplied
- v314 patches 23 repliesSuperseded
- v218 patches 12 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 18 patches | 18 replies | Superseded |
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | target-ppc: Add ISA2.06 bpermd Instructiontarget-ppc/ target-ppc/ target-ppc/ +2 more | +41 | 0 replies | |
| 2/22 | target-ppc: Add Flag for ISA2.06 Divide Extended Instructionstarget-ppc/ target-ppc/ | +7 | 1 reply | |
| 3/22 | target-ppc: Add ISA2.06 divdeu[o] Instructionsinclude/ target-ppc/ target-ppc/ +2 more | +101 | 0 replies | |
| 4/22 | target-ppc: Add ISA2.06 divde[o] Instructionsinclude/ target-ppc/ target-ppc/ +2 more | +79 | 0 replies | |
| 5/22 | target-ppc: Add ISA 2.06 divweu[o] Instructionstarget-ppc/ target-ppc/ target-ppc/ | +37 | 1 reply | |
| 6/22 | target-ppc: Add ISA 2.06 divwe[o] Instructionstarget-ppc/ target-ppc/ target-ppc/ | +37 | 1 reply | |
| 7/22 | target-ppc: Add Flag for ISA2.06 Atomic Instructionstarget-ppc/ target-ppc/ | +10 | 1 reply | |
| 8/22 | target-ppc: Add ISA2.06 lbarx, lharx Instructionstarget-ppc/ | +24 | 0 replies | |
| 9/22 | target-ppc: Add ISA 2.06 stbcx. and sthcx. Instructionstarget-ppc/ | +44 | 0 replies | |
| 10/22 | target-ppc: Add Flag for ISA V2.06 Floating Point Conversiontarget-ppc/ target-ppc/ | +7 | 1 reply | |
| 11/22 | target-ppc: Add ISA2.06 Float to Integer Instructionstarget-ppc/ target-ppc/ target-ppc/ | +49 | 0 replies | |
| 12/22 | target-ppc: Add ISA 2.06 fcfid[u][s] Instructionstarget-ppc/ target-ppc/ target-ppc/ | +31 | 1 reply | |
| 13/22 | softfloat: Fix exception flag handling for float32_to_float16()fpu/ | +66 | 0 replies | |
| 14/22 | softfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormalfpu/ | +125 | 0 replies | |
| 15/22 | softfloat: Refactor code handling various rounding modesfpu/ | +241 | 0 replies | |
| 16/22 | softfloat: Add support for ties-away roundingfpu/ include/ | +56 | 0 replies | |
| 17/22 | target-ppc: Fix and enable fri[mnpz]target-ppc/ target-ppc/ | +14 | 3 replies | |
| 18/22 | target-ppc: Add Flag for Power ISA V2.06 Floating Point Test Instructionstarget-ppc/ target-ppc/ | +9 | 1 reply | |
| 19/22 | target-ppc: Add ISA 2.06 ftdiv Instructiontarget-ppc/ target-ppc/ target-ppc/ | +61 | 1 reply | |
| 20/22 | target-ppc: Add ISA 2.06 ftsqrttarget-ppc/ target-ppc/ target-ppc/ | +42 | 1 reply | |
| 21/22 | target-ppc: Enable frsqrtes on Power7 and Power8target-ppc/ | +3 | 0 replies | |
| 22/22 | target-ppc: Add ISA2.06 lfiwzx Instructiontarget-ppc/ | +15 | 0 replies |
Reviews trailers per patch
All 22 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson | Tom Musta |
|---|---|---|
| 1/22 | R-b | |
| 2/22 | R-b | |
| 3/22 | R-b | |
| 4/22 | R-b | |
| 5/22 | R-b | |
| 6/22 | R-b | |
| 7/22 | R-b | |
| 8/22 | R-b | |
| 9/22 | R-b | |
| 10/22 | R-b | |
| 11/22 | R-b | |
| 12/22 | R-b | |
| 13/22 | R-b | R-b |
| 14/22 | R-b | R-b |
| 15/22 | R-b | R-b |
| 16/22 | R-b | R-b |
| 17/22 | R-b | |
| 18/22 | R-b | |
| 19/22 | R-b | |
| 20/22 | R-b | |
| 21/22 | R-b | |
| 22/22 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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(-)