From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xchsR5RYXzDqV5 for ; Wed, 23 Aug 2017 19:27:23 +1000 (AEST) Message-ID: <1503480443.25055.22.camel@neuling.org> Subject: Re: [PATCH RFC 0/7] powerpc: Beef up single-stepping/instruction emulation infrastructure From: Michael Neuling To: Paul Mackerras , linuxppc-dev@ozlabs.org Date: Wed, 23 Aug 2017 19:27:23 +1000 In-Reply-To: <1503445683-12011-1-git-send-email-paulus@ozlabs.org> References: <1503445683-12011-1-git-send-email-paulus@ozlabs.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Paulus,=20 > This patch series extends the code in arch/powerpc/lib/sstep.c so that > it handles almost all load and store instructions -- all except the > atomic memory operations (lwat, stwat, etc.).=C2=A0=C2=A0It also makes su= re that > we use the largest possible aligned accesses to access memory and that > we don't access the CPU FP/VMX/VSX registers when they don't contain > user data. Do you have any test cases we can put in selftests for this? > With this, it should be possible to replace the body of the alignment > interrupt handler with a call to emulate_step() or something quite > similar. Exercise for the reader? :-) Mikey