diff options
Diffstat (limited to 'arch/mips/include/asm/fpu_emulator.h')
-rw-r--r-- | arch/mips/include/asm/fpu_emulator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/include/asm/fpu_emulator.h b/arch/mips/include/asm/fpu_emulator.h index 3ee347713307..2f021cdfba4f 100644 --- a/arch/mips/include/asm/fpu_emulator.h +++ b/arch/mips/include/asm/fpu_emulator.h | |||
@@ -44,6 +44,7 @@ struct mips_fpu_emulator_stats { | |||
44 | unsigned long ieee754_overflow; | 44 | unsigned long ieee754_overflow; |
45 | unsigned long ieee754_zerodiv; | 45 | unsigned long ieee754_zerodiv; |
46 | unsigned long ieee754_invalidop; | 46 | unsigned long ieee754_invalidop; |
47 | unsigned long ds_emul; | ||
47 | }; | 48 | }; |
48 | 49 | ||
49 | DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats); | 50 | DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats); |
@@ -65,7 +66,8 @@ extern int do_dsemulret(struct pt_regs *xcp); | |||
65 | extern int fpu_emulator_cop1Handler(struct pt_regs *xcp, | 66 | extern int fpu_emulator_cop1Handler(struct pt_regs *xcp, |
66 | struct mips_fpu_struct *ctx, int has_fpu, | 67 | struct mips_fpu_struct *ctx, int has_fpu, |
67 | void *__user *fault_addr); | 68 | void *__user *fault_addr); |
68 | int process_fpemu_return(int sig, void __user *fault_addr); | 69 | int process_fpemu_return(int sig, void __user *fault_addr, |
70 | unsigned long fcr31); | ||
69 | int mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, | 71 | int mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, |
70 | unsigned long *contpc); | 72 | unsigned long *contpc); |
71 | 73 | ||
@@ -86,8 +88,6 @@ static inline void fpu_emulator_init_fpu(void) | |||
86 | struct task_struct *t = current; | 88 | struct task_struct *t = current; |
87 | int i; | 89 | int i; |
88 | 90 | ||
89 | t->thread.fpu.fcr31 = 0; | ||
90 | |||
91 | for (i = 0; i < 32; i++) | 91 | for (i = 0; i < 32; i++) |
92 | set_fpr64(&t->thread.fpu.fpr[i], 0, SIGNALLING_NAN); | 92 | set_fpr64(&t->thread.fpu.fpr[i], 0, SIGNALLING_NAN); |
93 | } | 93 | } |