Skip to content

Commit f5868f0

Browse files
pebolleralfbaechle
authored andcommitted
MIPS: Replace CONFIG_MIPS64 and CONFIG_MIPS32_R2
Commit 597ce17 ("MIPS: Support for 64-bit FP with O32 binaries") introduced references to two undefined Kconfig macros. CONFIG_MIPS32_R2 should clearly be replaced with CONFIG_CPU_MIPS32_R2. And CONFIG_MIPS64 should be replaced with CONFIG_64BIT. Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/6522/ Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 51061b8 commit f5868f0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

arch/mips/include/asm/asmmacro.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
.endm
107107

108108
.macro fpu_save_double thread status tmp
109-
#if defined(CONFIG_MIPS64) || defined(CONFIG_CPU_MIPS32_R2)
109+
#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2)
110110
sll \tmp, \status, 5
111111
bgez \tmp, 10f
112112
fpu_save_16odd \thread
@@ -159,7 +159,7 @@
159159
.endm
160160

161161
.macro fpu_restore_double thread status tmp
162-
#if defined(CONFIG_MIPS64) || defined(CONFIG_CPU_MIPS32_R2)
162+
#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2)
163163
sll \tmp, \status, 5
164164
bgez \tmp, 10f # 16 register mode?
165165

arch/mips/include/asm/fpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static inline int __enable_fpu(enum fpu_mode mode)
5757
return 0;
5858

5959
case FPU_64BIT:
60-
#if !(defined(CONFIG_CPU_MIPS32_R2) || defined(CONFIG_MIPS64))
60+
#if !(defined(CONFIG_CPU_MIPS32_R2) || defined(CONFIG_64BIT))
6161
/* we only have a 32-bit FPU */
6262
return SIGFPE;
6363
#endif

arch/mips/kernel/r4k_fpu.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
LEAF(_save_fp_context)
3636
cfc1 t1, fcr31
3737

38-
#if defined(CONFIG_64BIT) || defined(CONFIG_MIPS32_R2)
38+
#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2)
3939
.set push
40-
#ifdef CONFIG_MIPS32_R2
40+
#ifdef CONFIG_CPU_MIPS32_R2
4141
.set mips64r2
4242
mfc0 t0, CP0_STATUS
4343
sll t0, t0, 5
@@ -148,9 +148,9 @@ LEAF(_save_fp_context32)
148148
LEAF(_restore_fp_context)
149149
EX lw t0, SC_FPC_CSR(a0)
150150

151-
#if defined(CONFIG_64BIT) || defined(CONFIG_MIPS32_R2)
151+
#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2)
152152
.set push
153-
#ifdef CONFIG_MIPS32_R2
153+
#ifdef CONFIG_CPU_MIPS32_R2
154154
.set mips64r2
155155
mfc0 t0, CP0_STATUS
156156
sll t0, t0, 5

0 commit comments

Comments
 (0)