aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/cp1emu.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-09-15 04:52:34 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:32:22 -0400
commit587cb98f368de7ea4382a6ca99847113fbbeea91 (patch)
tree9a34df00ddc0d921c127cad15f6e5a8bef264802 /arch/mips/math-emu/cp1emu.c
parent61ed7f08b691677a13486d920dcd931b7d31719c (diff)
GCC bulletproofing: __mips64 is only defined when compiling for 64-bit
processors. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/cp1emu.c')
-rw-r--r--arch/mips/math-emu/cp1emu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/math-emu/cp1emu.c b/arch/mips/math-emu/cp1emu.c
index 190bdf9921be..096780ce939d 100644
--- a/arch/mips/math-emu/cp1emu.c
+++ b/arch/mips/math-emu/cp1emu.c
@@ -467,7 +467,7 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx)
467 switch (MIPSInst_OPCODE(ir)) { 467 switch (MIPSInst_OPCODE(ir)) {
468 case lwc1_op: 468 case lwc1_op:
469 case swc1_op: 469 case swc1_op:
470#if (__mips >= 2 || __mips64) && !defined(SINGLE_ONLY_FPU) 470#if (__mips >= 2 || defined(__mips64)) && !defined(SINGLE_ONLY_FPU)
471 case ldc1_op: 471 case ldc1_op:
472 case sdc1_op: 472 case sdc1_op:
473#endif 473#endif
@@ -842,7 +842,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
842 goto scopbop; 842 goto scopbop;
843 843
844 /* unary ops */ 844 /* unary ops */
845#if __mips >= 2 || __mips64 845#if __mips >= 2 || defined(__mips64)
846 case fsqrt_op: 846 case fsqrt_op:
847 handler.u = ieee754sp_sqrt; 847 handler.u = ieee754sp_sqrt;
848 goto scopuop; 848 goto scopuop;
@@ -941,7 +941,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
941 goto copcsr; 941 goto copcsr;
942 } 942 }
943 943
944#if __mips >= 2 || __mips64 944#if __mips >= 2 || defined(__mips64)
945 case fround_op: 945 case fround_op:
946 case ftrunc_op: 946 case ftrunc_op:
947 case fceil_op: 947 case fceil_op:
@@ -982,7 +982,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
982 rfmt = l_fmt; 982 rfmt = l_fmt;
983 goto copcsr; 983 goto copcsr;
984 } 984 }
985#endif /* __mips64 && !fpu(single) */ 985#endif /* defined(__mips64) && !fpu(single) */
986 986
987 default: 987 default:
988 if (MIPSInst_FUNC(ir) >= fcmp_op) { 988 if (MIPSInst_FUNC(ir) >= fcmp_op) {
@@ -1032,7 +1032,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
1032 goto dcopbop; 1032 goto dcopbop;
1033 1033
1034 /* unary ops */ 1034 /* unary ops */
1035#if __mips >= 2 || __mips64 1035#if __mips >= 2 || defined(__mips64)
1036 case fsqrt_op: 1036 case fsqrt_op:
1037 handler.u = ieee754dp_sqrt; 1037 handler.u = ieee754dp_sqrt;
1038 goto dcopuop; 1038 goto dcopuop;
@@ -1116,7 +1116,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
1116 goto copcsr; 1116 goto copcsr;
1117 } 1117 }
1118 1118
1119#if __mips >= 2 || __mips64 1119#if __mips >= 2 || defined(__mips64)
1120 case fround_op: 1120 case fround_op:
1121 case ftrunc_op: 1121 case ftrunc_op:
1122 case fceil_op: 1122 case fceil_op: