Skip to content

Add IBM PPE42 CPU support

Glenn Miles qemu-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest9 patches 4 repliesIn review
  2. v59 patches 12 repliesSuperseded
  3. v49 patches 8 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v39 patches5 repliesSuperseded
v24 patches9 repliesSuperseded
v14 patches14 repliesSuperseded

Changes in v6 from the cover letter

Patch 2:
- Added missing POWERPC_FLAG_PPE42 check (Chinmay)

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9target/ppc: IBM PPE42 general regs and flagstarget/ppc/cpu-models.h target/ppc/cpu.h+52 -10 replies
2/9target/ppc: Add IBM PPE42 family of processorstarget/ppc/cpu-models.c target/ppc/cpu_init.c target/ppc/helper_regs.c +1 more+205 -561 reply
3/9target/ppc: IBM PPE42 exception flags and regstarget/ppc/cpu.h+27 -00 replies
4/9target/ppc: Add IBM PPE42 exception modeltarget/ppc/cpu_init.c target/ppc/excp_helper.c target/ppc/tcg-excp_helper.c+213 -10 replies
5/9target/ppc: Support for IBM PPE42 MMUtarget/ppc/helper_regs.c+4 -00 replies
6/9target/ppc: Add IBM PPE42 special instructionstarget/ppc/insn32.decode target/ppc/translate.c target/ppc/translate/ppe-impl.c.inc+695 -100 replies
7/9hw/ppc: Support for an IBM PPE42 CPU decrementerhw/ppc/ppc_booke.c include/hw/ppc/ppc.h+7 -13 replies
8/9hw/ppc: Add a test machine for the IBM PPE42 CPUMAINTAINERS hw/ppc/Kconfig hw/ppc/meson.build +1 more+115 -00 replies
9/9tests/functional: Add test for IBM PPE42 instructionsMAINTAINERS tests/functional/ppc/meson.build tests/functional/ppc/test_ppe42.py+81 -00 replies

Reviews trailers per patch

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

PatchChinmay RathCédric Le GoaterThomas HuthHarsh Prateek Bora
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/9] Add IBM PPE42 CPU support

v6:
Patch 2:
- Added missing POWERPC_FLAG_PPE42 check (Chinmay)

This patchset adds support for the IBM PPE42 processor, including a simple machine providing a platform for testing the PPE42 instructions.

The PPE42 processor is used as an embedded processor in the IBM Power9, Power10 and Power12 processors for various tasks. It is basically a stripped down version of the IBM PowerPC 405 processor, with some added instructions for handling 64-bit loads and stores and some 64-bit logical operations.

For more information on the PPE 42 processor please visit:

https://wiki.raptorcs.com/w/images/a/a3/PPE_42X_Core_Users_Manual.pdf

A functional test is included. This test downloads a prebuilt test image from:

https://github.com/milesg-github/ppe42-tests

Building the image rquires a forked version of an old version of GCC, which can be found here:

https://github.com/open-power/ppe42-gcc

Thanks,

Glenn

Glenn Miles (9):
target/ppc: IBM PPE42 general regs and flags target/ppc: Add IBM PPE42 family of processors target/ppc: IBM PPE42 exception flags and regs target/ppc: Add IBM PPE42 exception model target/ppc: Support for IBM PPE42 MMU target/ppc: Add IBM PPE42 special instructions hw/ppc: Support for an IBM PPE42 CPU decrementer hw/ppc: Add a test machine for the IBM PPE42 CPU tests/functional: Add test for IBM PPE42 instructions

 MAINTAINERS                         |   7 +
 hw/ppc/Kconfig                      |   5 +
 hw/ppc/meson.build                  |   2 +
 hw/ppc/ppc_booke.c                  |   7 +-
 hw/ppc/ppe42_machine.c              | 102 +++++
 include/hw/ppc/ppc.h                |   1 +
 target/ppc/cpu-models.c             |   7 +
 target/ppc/cpu-models.h             |   4 +
 target/ppc/cpu.h                    |  76 +++-
 target/ppc/cpu_init.c               | 244 +++++++++--
 target/ppc/excp_helper.c            | 163 ++++++++
 target/ppc/helper_regs.c            |  45 +-
 target/ppc/insn32.decode            |  66 ++-
 target/ppc/tcg-excp_helper.c        |  12 +
 target/ppc/translate.c              |  35 +-
 target/ppc/translate/ppe-impl.c.inc | 610 ++++++++++++++++++++++++++++
 tests/functional/ppc/meson.build    |   1 +
 tests/functional/ppc/test_ppe42.py  |  79 ++++
 18 files changed, 1398 insertions(+), 68 deletions(-)
 create mode 100644 hw/ppc/ppe42_machine.c
 create mode 100644 target/ppc/translate/ppe-impl.c.inc
 create mode 100644 tests/functional/ppc/test_ppe42.py
Signature · 1 line
2.43.0