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

Paul Mackerras paulus at samba.org
Mon Aug 18 22:13:09 EST 2014


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.

The patch series is against v3.17-rc1.

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



More information about the Linuxppc-dev mailing list