diff options
| author | Ralf Baechle <ralf@linux-mips.org> | 2015-04-13 16:01:37 +0200 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-13 16:01:37 +0200 |
| commit | 98b0429b7abd5c05efdb23f3eba02ec3f696748e (patch) | |
| tree | 44e6028c3be974dd42665510ada6a09fb5f8f1be /arch/mips/include/asm/processor.h | |
| parent | 3cf29543413207d3ab1c3f62a88c09bb46f2264e (diff) | |
| parent | 1f3a2c6e229ccb8df8115b04d16ad4832767cf3a (diff) | |
Merge branch '4.1-fp' into mips-for-linux-next
Diffstat (limited to 'arch/mips/include/asm/processor.h')
| -rw-r--r-- | arch/mips/include/asm/processor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h index b5dcbee01fd7..9b3b48e21c22 100644 --- a/arch/mips/include/asm/processor.h +++ b/arch/mips/include/asm/processor.h @@ -105,7 +105,7 @@ union fpureg { #ifdef CONFIG_CPU_LITTLE_ENDIAN # define FPR_IDX(width, idx) (idx) #else -# define FPR_IDX(width, idx) ((FPU_REG_WIDTH / (width)) - 1 - (idx)) +# define FPR_IDX(width, idx) ((idx) ^ ((64 / (width)) - 1)) #endif #define BUILD_FPR_ACCESS(width) \ |
