Skip to content

powerpc: Make sstep.c more generally useful

Paul Mackerras linuxppc-dev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3powerpc: Split out instruction analysis part of emulate_step()arch/powerpc/include/asm/sstep.h arch/powerpc/lib/sstep.c+598 -3600 replies
2/3powerpc: Emulate icbi, mcrf and conditional-trap instructionsarch/powerpc/include/asm/sstep.h arch/powerpc/lib/sstep.c+61 -00 replies
3/3powerpc: Implement emulation of string loads and storesarch/powerpc/lib/sstep.c+49 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] powerpc: Make sstep.c more generally useful

This patch series modifies the code in arch/powerpc/lib/sstep.c so that it can be used by KVM in its instruction emulation, thereby reducing the number of different PowerPC instruction emulators that we have in the kernel. It does this by splitting the existing emulate_step() function into two: an analyse_instr() function that decodes an instruction and executes the easy ones, and an emulate_step() function that uses analyse_instr() and then executes the loads and stores. The subsequent two patches add emulation of some extra instructions.

v2: add #ifdef CONFIG_ALTIVEC around do_vec_{load,store} calls.

The patch series is against v3.17-rc1.

 arch/powerpc/include/asm/sstep.h |  62 +++
 arch/powerpc/lib/sstep.c         | 996 +++++++++++++++++++++++++--------------
 2 files changed, 698 insertions(+), 360 deletions(-)