From mboxrd@z Thu Jan 1 00:00:00 1970 In-Reply-To: <40F8138F.8090004@pi.be> References: <40F57D15.8030700@pi.be> <69A5B0EA-D669-11D8-A9B5-000393DBC2E8@freescale.com> <40F8138F.8090004@pi.be> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6505FDD3-DC31-11D8-A541-000393DBC2E8@freescale.com> Cc: Linux/PPC Development From: Kumar Gala Subject: Re: [PATCH] align.c Date: Thu, 22 Jul 2004 17:49:31 -0500 To: Paul Mackerras Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: Paul, Can you explain to me why/when stswi/lswi would get alignment exceptions. I think I'm missing something :) The reason I ask is we are working on some emulation handlers but are not doing anything with regards to alignment for e500. - kumar On Jul 16, 2004, at 12:42 PM, Stef Simoens wrote: > Kumar Gala wrote: >> Do you really see string ops and alignment exceptions? I was under >> the impression they did byte accesses. > > Yes, but i've only seen alignment exceptions with stswi/lswi > instructions though. > > (On the MPC601, stswi/lswi has better timings than a series of > stw/lwz; that's why I'm probably the only one seeing them...) > > While I was at it, Paulus asked me to handle stmw/lmw and stswx/lswx > as well... > > Stef > >> On Jul 14, 2004, at 1:36 PM, Stef Simoens wrote: >>> This is an (updated) diff to arch/ppc/kernel/align.c of the 2.6.8-rc1 >>> kernel. >>> The patch adds support for the handling of alignment exceptions of >>> multiple (lmw/stmw) and string (lswi/lswx/stswi/stswx) instructions. >>> Stef >>> >>> diff -ur linux-2.6.8-rc1/arch/ppc/kernel/align.c >>> linux-2.6.8-rc1-mq/arch/ppc/kernel/align.c >>> --- linux-2.6.8-rc1/arch/ppc/kernel/align.c 2004-07-12 >>> 17:46:42.525695737 +0200 >>> +++ linux-2.6.8-rc1-mq/arch/ppc/kernel/align.c 2004-07-12 >>> 20:25:24.390989048 +0200 > (snip) ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/