linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Add alignment handler for new lfiwzx instruction
@ 2009-02-20  4:51 Michael Neuling
  0 siblings, 0 replies; only message in thread
From: Michael Neuling @ 2009-02-20  4:51 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev

lfiwzx is a new floating point load instruction in 2.06 that needs an
alignment handler for Linux.  

Turns out to be the worlds easiest handler to add.

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
Benh: this is for 2.6.30, but would be nice to be back in 2.6.27/28/29
too.

 arch/powerpc/kernel/align.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-ozlabs/arch/powerpc/kernel/align.c
===================================================================
--- linux-2.6-ozlabs.orig/arch/powerpc/kernel/align.c
+++ linux-2.6-ozlabs/arch/powerpc/kernel/align.c
@@ -187,7 +187,7 @@ static struct aligninfo aligninfo[128] =
 	{ 4, ST+F+S+U },	/* 11 1 1010: stfsux */
 	{ 8, ST+F+U },		/* 11 1 1011: stfdux */
 	INVALID,		/* 11 1 1100 */
-	INVALID,		/* 11 1 1101 */
+	{ 4, LD+F },		/* 11 1 1101: lfiwzx */
 	INVALID,		/* 11 1 1110 */
 	INVALID,		/* 11 1 1111 */
 };

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-20  4:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-20  4:51 [PATCH] powerpc: Add alignment handler for new lfiwzx instruction Michael Neuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).