]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: MSA: Fix big-endian FPR_IDX implementation
authorJames Hogan <james.hogan@imgtec.com>
Fri, 30 Jan 2015 12:09:39 +0000 (12:09 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 27 Mar 2015 18:42:48 +0000 (19:42 +0100)
commit722fd840b58977651304801c32768c5fab4d2581
tree9af45f0131586543307d1d116002679e44cabec1
parent921b87fba73bb22639fc9a78038a816b1984c7db
MIPS: MSA: Fix big-endian FPR_IDX implementation

The maximum word size is 64-bits since MSA state is saved using st.d
which stores two 64-bit words, therefore reimplement FPR_IDX using xor,
and only within each 64-bit word.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9169/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/processor.h