diff options
Diffstat (limited to 'arch/mips/math-emu')
-rw-r--r-- | arch/mips/math-emu/cp1emu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/math-emu/cp1emu.c b/arch/mips/math-emu/cp1emu.c index 20a552be02ee..99c550632d44 100644 --- a/arch/mips/math-emu/cp1emu.c +++ b/arch/mips/math-emu/cp1emu.c | |||
@@ -320,7 +320,7 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx) | |||
320 | case cop1_op: | 320 | case cop1_op: |
321 | switch (MIPSInst_RS(ir)) { | 321 | switch (MIPSInst_RS(ir)) { |
322 | 322 | ||
323 | #if __mips64 && !defined(SINGLE_ONLY_FPU) | 323 | #if defined(__mips64) && !defined(SINGLE_ONLY_FPU) |
324 | case dmfc_op: | 324 | case dmfc_op: |
325 | /* copregister fs -> gpr[rt] */ | 325 | /* copregister fs -> gpr[rt] */ |
326 | if (MIPSInst_RT(ir) != 0) { | 326 | if (MIPSInst_RT(ir) != 0) { |
@@ -805,7 +805,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | |||
805 | ieee754dp d; | 805 | ieee754dp d; |
806 | ieee754sp s; | 806 | ieee754sp s; |
807 | int w; | 807 | int w; |
808 | #if __mips64 | 808 | #ifdef __mips64 |
809 | s64 l; | 809 | s64 l; |
810 | #endif | 810 | #endif |
811 | } rv; /* resulting value */ | 811 | } rv; /* resulting value */ |
@@ -950,7 +950,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | |||
950 | } | 950 | } |
951 | #endif /* __mips >= 2 */ | 951 | #endif /* __mips >= 2 */ |
952 | 952 | ||
953 | #if __mips64 && !defined(SINGLE_ONLY_FPU) | 953 | #if defined(__mips64) && !defined(SINGLE_ONLY_FPU) |
954 | case fcvtl_op:{ | 954 | case fcvtl_op:{ |
955 | ieee754sp fs; | 955 | ieee754sp fs; |
956 | 956 | ||
@@ -1125,7 +1125,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | |||
1125 | } | 1125 | } |
1126 | #endif | 1126 | #endif |
1127 | 1127 | ||
1128 | #if __mips64 && !defined(SINGLE_ONLY_FPU) | 1128 | #if defined(__mips64) && !defined(SINGLE_ONLY_FPU) |
1129 | case fcvtl_op:{ | 1129 | case fcvtl_op:{ |
1130 | ieee754dp fs; | 1130 | ieee754dp fs; |
1131 | 1131 | ||
@@ -1203,7 +1203,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | |||
1203 | break; | 1203 | break; |
1204 | } | 1204 | } |
1205 | 1205 | ||
1206 | #if __mips64 && !defined(SINGLE_ONLY_FPU) | 1206 | #if defined(__mips64) && !defined(SINGLE_ONLY_FPU) |
1207 | case l_fmt:{ | 1207 | case l_fmt:{ |
1208 | switch (MIPSInst_FUNC(ir)) { | 1208 | switch (MIPSInst_FUNC(ir)) { |
1209 | case fcvts_op: | 1209 | case fcvts_op: |
@@ -1267,7 +1267,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_soft_struct *ctx, | |||
1267 | case w_fmt: | 1267 | case w_fmt: |
1268 | SITOREG(rv.w, MIPSInst_FD(ir)); | 1268 | SITOREG(rv.w, MIPSInst_FD(ir)); |
1269 | break; | 1269 | break; |
1270 | #if __mips64 && !defined(SINGLE_ONLY_FPU) | 1270 | #if defined(__mips64) && !defined(SINGLE_ONLY_FPU) |
1271 | case l_fmt: | 1271 | case l_fmt: |
1272 | DITOREG(rv.l, MIPSInst_FD(ir)); | 1272 | DITOREG(rv.l, MIPSInst_FD(ir)); |
1273 | break; | 1273 | break; |