powerpc: Fix offset of FPRs in VSX registers in little endian builds
authorAnton Blanchard <anton@samba.org>
Mon, 23 Sep 2013 02:04:37 +0000 (12:04 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:48:26 +0000 (16:48 +1100)
commite156bd8ad76939a9bcd66d85cf06f8cde1fb8030
tree4da0a3c2138309a8366036d1068567414d4a8c76
parent12f04f2be80dd8d9da24534828f3ab3189ca5af2
powerpc: Fix offset of FPRs in VSX registers in little endian builds

The FPRs overlap the high doublewords of the first 32 VSX registers.
Fix TS_FPROFFSET and TS_VSRLOWOFFSET so we access the correct fields
in little endian mode.

If VSX is disabled the FPRs are only one doubleword in length so
TS_FPROFFSET needs adjusting in little endian.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/processor.h