|
@@ -105,7 +105,7 @@ union fpureg {
|
|
#ifdef CONFIG_CPU_LITTLE_ENDIAN
|
|
#ifdef CONFIG_CPU_LITTLE_ENDIAN
|
|
# define FPR_IDX(width, idx) (idx)
|
|
# define FPR_IDX(width, idx) (idx)
|
|
#else
|
|
#else
|
|
-# define FPR_IDX(width, idx) ((FPU_REG_WIDTH / (width)) - 1 - (idx))
|
|
|
|
|
|
+# define FPR_IDX(width, idx) ((idx) ^ ((64 / (width)) - 1))
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#define BUILD_FPR_ACCESS(width) \
|
|
#define BUILD_FPR_ACCESS(width) \
|