summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/math-emu
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2013-07-09 21:43:42 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 00:58:40 -0400
commitcf5c2e543c7b4a5ec49f547070c0f3f4c95e20ed (patch)
tree211d1ce953f004d70bfa98bc623884f3a0fa077e /arch/powerpc/math-emu
parent8a05dd851410b3a299421a6c6975c081d3c805a8 (diff)
powerpc/math-emu: Remove the dead code in math.c
The math.c is only built when CONFIG_MATH_EMULATION is enabled. So we would never get into the case that CONFIG_MATH_EMULATION is not defined in this file. Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/math-emu')
-rw-r--r--arch/powerpc/math-emu/math.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/arch/powerpc/math-emu/math.c b/arch/powerpc/math-emu/math.c
index 0328e66e0799..cefb4f2f4039 100644
--- a/arch/powerpc/math-emu/math.c
+++ b/arch/powerpc/math-emu/math.c
@@ -231,47 +231,6 @@ do_mathemu(struct pt_regs *regs)
231 if (get_user(insn, (u32 *)pc)) 231 if (get_user(insn, (u32 *)pc))
232 return -EFAULT; 232 return -EFAULT;
233 233
234#ifndef CONFIG_MATH_EMULATION
235 switch (insn >> 26) {
236 case LFD:
237 idx = (insn >> 16) & 0x1f;
238 sdisp = (insn & 0xffff);
239 op0 = (void *)&current->thread.TS_FPR((insn >> 21) & 0x1f);
240 op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
241 lfd(op0, op1, op2, op3);
242 break;
243 case LFDU:
244 idx = (insn >> 16) & 0x1f;
245 sdisp = (insn & 0xffff);
246 op0 = (void *)&current->thread.TS_FPR((insn >> 21) & 0x1f);
247 op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
248 lfd(op0, op1, op2, op3);
249 regs->gpr[idx] = (unsigned long)op1;
250 break;
251 case STFD:
252 idx = (insn >> 16) & 0x1f;
253 sdisp = (insn & 0xffff);
254 op0 = (void *)&current->thread.TS_FPR((insn >> 21) & 0x1f);
255 op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
256 stfd(op0, op1, op2, op3);
257 break;
258 case STFDU:
259 idx = (insn >> 16) & 0x1f;
260 sdisp = (insn & 0xffff);
261 op0 = (void *)&current->thread.TS_FPR((insn >> 21) & 0x1f);
262 op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
263 stfd(op0, op1, op2, op3);
264 regs->gpr[idx] = (unsigned long)op1;
265 break;
266 case OP63:
267 op0 = (void *)&current->thread.TS_FPR((insn >> 21) & 0x1f);
268 op1 = (void *)&current->thread.TS_FPR((insn >> 11) & 0x1f);
269 fmr(op0, op1, op2, op3);
270 break;
271 default:
272 goto illegal;
273 }
274#else /* CONFIG_MATH_EMULATION */
275 switch (insn >> 26) { 234 switch (insn >> 26) {
276 case LFS: func = lfs; type = D; break; 235 case LFS: func = lfs; type = D; break;
277 case LFSU: func = lfs; type = DU; break; 236 case LFSU: func = lfs; type = DU; break;
@@ -485,7 +444,6 @@ do_mathemu(struct pt_regs *regs)
485 default: 444 default:
486 break; 445 break;
487 } 446 }
488#endif /* CONFIG_MATH_EMULATION */
489 447
490 regs->nip += 4; 448 regs->nip += 4;
491 return 0; 449 return 0;