powerpc: Fix Handler of Unaligned Load/Store Strings
authorTom Musta <tommusta@gmail.com>
Fri, 18 Oct 2013 17:07:10 +0000 (12:07 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Oct 2013 05:01:17 +0000 (16:01 +1100)
commit075f6311af30b011eaa8e50341c06a9082a796a9
treec555a6b3f274e1c2fa2107c69ccc12cb3f9f6ad5
parentdf015604cf5bb09f79c353926dd7e40d00d251a3
powerpc: Fix Handler of Unaligned Load/Store Strings

The alignment handler is incorrect for unaligned string instructions
in little endian mode.  These instructions access data as arrays of
bytes and thus are endian neutral.  However, the routine also handles
the load/store multiple instructions, which are NOT endian neutral.

This patch toggles the byte swapping flag for the string instructions
in little endian builds.  This effectively disables the byte swapping
logic.

Signed-off-by: Tom Musta <tmusta@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/align.c