提交 92df0f8b 编写于 作者: R Ralf Baechle

MIPS: math-emu: Convert debug printks to pr_debug getting.

And another bunch of #ifdefs bite the dust.
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 fcfe2285
...@@ -1119,11 +1119,9 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx, ...@@ -1119,11 +1119,9 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
value = ctx->fcr31; value = ctx->fcr31;
value = (value & ~FPU_CSR_RM) | value = (value & ~FPU_CSR_RM) |
mips_rm[modeindex(value)]; mips_rm[modeindex(value)];
#ifdef CSRTRACE pr_debug("%p gpr[%d]<-csr=%08x\n",
printk("%p gpr[%d]<-csr=%08x\n", (void *) (xcp->cp0_epc),
(void *) (xcp->cp0_epc), MIPSInst_RT(ir), value);
MIPSInst_RT(ir), value);
#endif
} }
else if (MIPSInst_RD(ir) == FPCREG_RID) else if (MIPSInst_RD(ir) == FPCREG_RID)
value = 0; value = 0;
...@@ -1146,11 +1144,9 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx, ...@@ -1146,11 +1144,9 @@ static int cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
/* we only have one writable control reg /* we only have one writable control reg
*/ */
if (MIPSInst_RD(ir) == FPCREG_CSR) { if (MIPSInst_RD(ir) == FPCREG_CSR) {
#ifdef CSRTRACE pr_debug("%p gpr[%d]->csr=%08x\n",
printk("%p gpr[%d]->csr=%08x\n", (void *) (xcp->cp0_epc),
(void *) (xcp->cp0_epc), MIPSInst_RT(ir), value);
MIPSInst_RT(ir), value);
#endif
/* /*
* Don't write reserved bits, * Don't write reserved bits,
......
...@@ -44,10 +44,8 @@ int mips_dsemul(struct pt_regs *regs, mips_instruction ir, unsigned long cpc) ...@@ -44,10 +44,8 @@ int mips_dsemul(struct pt_regs *regs, mips_instruction ir, unsigned long cpc)
clear_delay_slot(regs); clear_delay_slot(regs);
return 0; return 0;
} }
#ifdef DSEMUL_TRACE
printk("dsemul %lx %lx\n", regs->cp0_epc, cpc);
#endif pr_debug("dsemul %lx %lx\n", regs->cp0_epc, cpc);
/* /*
* The strategy is to push the instruction onto the user stack * The strategy is to push the instruction onto the user stack
...@@ -149,9 +147,8 @@ int do_dsemulret(struct pt_regs *xcp) ...@@ -149,9 +147,8 @@ int do_dsemulret(struct pt_regs *xcp)
* emulating the branch delay instruction. * emulating the branch delay instruction.
*/ */
#ifdef DSEMUL_TRACE pr_debug("dsemulret\n");
printk("dsemulret\n");
#endif
if (__get_user(epc, &fr->epc)) { /* Saved EPC */ if (__get_user(epc, &fr->epc)) { /* Saved EPC */
/* This is not a good situation to be in */ /* This is not a good situation to be in */
force_sig(SIGBUS, current); force_sig(SIGBUS, current);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册