From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id E72F61A003D for ; Mon, 18 Aug 2014 22:13:34 +1000 (EST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id AB36E1400A8 for ; Mon, 18 Aug 2014 22:13:34 +1000 (EST) From: Paul Mackerras To: linuxppc-dev@ozlabs.org Subject: [PATCH 0/3] powerpc: Make sstep.c more generally useful Date: Mon, 18 Aug 2014 22:13:09 +1000 Message-Id: <1408363992-7929-1-git-send-email-paulus@samba.org> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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(-)