Skip to content

target-ppc: emulate Power ISA 2.05 instructions

Aurelien Jarno qemu-devel 2 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. v2 Latest10 patches 5 repliesApplied
  2. v110 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Use (1ULL << 63) instead of (1LL << 63) to access the bit sign
- Improve description of load/store doubleword pair instructions

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10target-ppc: optimize fabs, fnabs, fnegtarget-ppc/fpu_helper.c target-ppc/helper.h target-ppc/translate.c+34 -400 replies
2/10disas: Disassemble all ppc insns for the guestdisas.c+1 -00 replies
3/10target-ppc: add instruction flags for Book I 2.05target-ppc/cpu.h target-ppc/translate_init.c+4 -20 replies
4/10target-ppc: emulate cmpb instructiontarget-ppc/helper.h target-ppc/int_helper.c target-ppc/translate.c+24 -00 replies
5/10target-ppc: emulate prtyw and prtyd instructionstarget-ppc/translate.c+38 -04 replies
6/10target-ppc: emulate fcpsgn instructiontarget-ppc/translate.c+14 -00 replies
7/10target-ppc: emulate lfiwax instructiontarget-ppc/translate.c+16 -20 replies
8/10target-ppc: emulate load doubleword pair instructionstarget-ppc/translate.c+48 -00 replies
9/10target-ppc: emulate store doubleword pair instructionstarget-ppc/translate.c+48 -00 replies
10/10target-ppc: add support for extended mtfsf/mtfsfi formstarget-ppc/fpu_helper.c target-ppc/translate.c+41 -220 replies

Reviews trailers per patch

6 of 10 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/10
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10
9/10
10/10

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/10] target-ppc: emulate Power ISA 2.05 instructions

qemu-system-ppc64 -M pseries clamis to emulate a POWER7 CPU, corresponding to an ISA 2.06 compliant CPU, while QEMU emulates something like an ISA 2.04 CPU.

Given that glibc and GCC start to use some instructions like cmpb and fcpsgn, this starts to be problematic.

This patches series improves the PPC emulation by bringing it to an ISA 2.05 CPU (if we except DFP and VSX), at least from the non-privledged point of view.

Changes v1 -> v2:
- Use (1ULL << 63) instead of (1LL << 63) to access the bit sign
- Improve description of load/store doubleword pair instructions

Aurelien Jarno (10):
target-ppc: optimize fabs, fnabs, fneg
disas: Disassemble all ppc insns for the guest
target-ppc: add instruction flags for Book I 2.05
target-ppc: emulate cmpb instruction
target-ppc: emulate prtyw and prtyd instructions
target-ppc: emulate fcpsgn instruction
target-ppc: emulate lfiwax instruction
target-ppc: emulate load doubleword pair instructions
target-ppc: emulate store doubleword pair instructions
target-ppc: add support for extended mtfsf/mtfsfi forms

 disas.c                     |    1 +
 target-ppc/cpu.h            |    4 +-
 target-ppc/fpu_helper.c     |   48 ++------
 target-ppc/helper.h         |    4 +-
 target-ppc/int_helper.c     |   15 +++
 target-ppc/translate.c      |  260 +++++++++++++++++++++++++++++++++++++++----
 target-ppc/translate_init.c |    2 +-
 7 files changed, 268 insertions(+), 66 deletions(-)
Signature · 1 line
1.7.10.4