mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
GCC bulletproofing: __mips64 is only defined when compiling for 64-bit
processors. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
61ed7f08b6
commit
587cb98f36
1 changed files with 6 additions and 6 deletions
|
@ -467,7 +467,7 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx)
|
||||||
switch (MIPSInst_OPCODE(ir)) {
|
switch (MIPSInst_OPCODE(ir)) {
|
||||||
case lwc1_op:
|
case lwc1_op:
|
||||||
case swc1_op:
|
case swc1_op:
|
||||||
#if (__mips >= 2 || __mips64) && !defined(SINGLE_ONLY_FPU)
|
#if (__mips >= 2 || defined(__mips64)) && !defined(SINGLE_ONLY_FPU)
|
||||||
case ldc1_op:
|
case ldc1_op:
|
||||||
case sdc1_op:
|
case sdc1_op:
|
||||||
#endif
|
#endif
|
||||||
|
@ -842,7 +842,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
|
||||||
goto scopbop;
|
goto scopbop;
|
||||||
|
|
||||||
/* unary ops */
|
/* unary ops */
|
||||||
#if __mips >= 2 || __mips64
|
#if __mips >= 2 || defined(__mips64)
|
||||||
case fsqrt_op:
|
case fsqrt_op:
|
||||||
handler.u = ieee754sp_sqrt;
|
handler.u = ieee754sp_sqrt;
|
||||||
goto scopuop;
|
goto scopuop;
|
||||||
|
@ -941,7 +941,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
|
||||||
goto copcsr;
|
goto copcsr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __mips >= 2 || __mips64
|
#if __mips >= 2 || defined(__mips64)
|
||||||
case fround_op:
|
case fround_op:
|
||||||
case ftrunc_op:
|
case ftrunc_op:
|
||||||
case fceil_op:
|
case fceil_op:
|
||||||
|
@ -982,7 +982,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
|
||||||
rfmt = l_fmt;
|
rfmt = l_fmt;
|
||||||
goto copcsr;
|
goto copcsr;
|
||||||
}
|
}
|
||||||
#endif /* __mips64 && !fpu(single) */
|
#endif /* defined(__mips64) && !fpu(single) */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (MIPSInst_FUNC(ir) >= fcmp_op) {
|
if (MIPSInst_FUNC(ir) >= fcmp_op) {
|
||||||
|
@ -1032,7 +1032,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
|
||||||
goto dcopbop;
|
goto dcopbop;
|
||||||
|
|
||||||
/* unary ops */
|
/* unary ops */
|
||||||
#if __mips >= 2 || __mips64
|
#if __mips >= 2 || defined(__mips64)
|
||||||
case fsqrt_op:
|
case fsqrt_op:
|
||||||
handler.u = ieee754dp_sqrt;
|
handler.u = ieee754dp_sqrt;
|
||||||
goto dcopuop;
|
goto dcopuop;
|
||||||
|
@ -1116,7 +1116,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx,
|
||||||
goto copcsr;
|
goto copcsr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __mips >= 2 || __mips64
|
#if __mips >= 2 || defined(__mips64)
|
||||||
case fround_op:
|
case fround_op:
|
||||||
case ftrunc_op:
|
case ftrunc_op:
|
||||||
case fceil_op:
|
case fceil_op:
|
||||||
|
|
Loading…
Reference in a new issue