Skip to contentSkip to conversation

powerpc: Add alignment handler for new lfiwzx instruction

PATCH New Michael Neuling 1 participant 1 message Feb 20, 2009 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Add alignment handler for new lfiwzx instruction

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.

---
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(-)
arch/powerpc/kernel/align.c +1 -1
Index: 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 */
 };