diff options
Diffstat (limited to 'arch/mips/include/asm/fpu_emulator.h')
-rw-r--r-- | arch/mips/include/asm/fpu_emulator.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/mips/include/asm/fpu_emulator.h b/arch/mips/include/asm/fpu_emulator.h index 3225c3c0724b..355dc25172e7 100644 --- a/arch/mips/include/asm/fpu_emulator.h +++ b/arch/mips/include/asm/fpu_emulator.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #define _ASM_FPU_EMULATOR_H | 24 | #define _ASM_FPU_EMULATOR_H |
25 | 25 | ||
26 | #include <linux/sched.h> | 26 | #include <linux/sched.h> |
27 | #include <asm/break.h> | 27 | #include <asm/dsemul.h> |
28 | #include <asm/thread_info.h> | 28 | #include <asm/thread_info.h> |
29 | #include <asm/inst.h> | 29 | #include <asm/inst.h> |
30 | #include <asm/local.h> | 30 | #include <asm/local.h> |
@@ -60,27 +60,16 @@ do { \ | |||
60 | #define MIPS_FPU_EMU_INC_STATS(M) do { } while (0) | 60 | #define MIPS_FPU_EMU_INC_STATS(M) do { } while (0) |
61 | #endif /* CONFIG_DEBUG_FS */ | 61 | #endif /* CONFIG_DEBUG_FS */ |
62 | 62 | ||
63 | extern int mips_dsemul(struct pt_regs *regs, mips_instruction ir, | ||
64 | unsigned long cpc); | ||
65 | extern int do_dsemulret(struct pt_regs *xcp); | ||
66 | extern int fpu_emulator_cop1Handler(struct pt_regs *xcp, | 63 | extern int fpu_emulator_cop1Handler(struct pt_regs *xcp, |
67 | struct mips_fpu_struct *ctx, int has_fpu, | 64 | struct mips_fpu_struct *ctx, int has_fpu, |
68 | void *__user *fault_addr); | 65 | void *__user *fault_addr); |
69 | int process_fpemu_return(int sig, void __user *fault_addr, | 66 | int process_fpemu_return(int sig, void __user *fault_addr, |
70 | unsigned long fcr31); | 67 | unsigned long fcr31); |
68 | int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, | ||
69 | unsigned long *contpc); | ||
71 | int mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, | 70 | int mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, |
72 | unsigned long *contpc); | 71 | unsigned long *contpc); |
73 | 72 | ||
74 | /* | ||
75 | * Instruction inserted following the badinst to further tag the sequence | ||
76 | */ | ||
77 | #define BD_COOKIE 0x0000bd36 /* tne $0, $0 with baggage */ | ||
78 | |||
79 | /* | ||
80 | * Break instruction with special math emu break code set | ||
81 | */ | ||
82 | #define BREAK_MATH(micromips) (((micromips) ? 0x7 : 0xd) | (BRK_MEMU << 16)) | ||
83 | |||
84 | #define SIGNALLING_NAN 0x7ff800007ff80000LL | 73 | #define SIGNALLING_NAN 0x7ff800007ff80000LL |
85 | 74 | ||
86 | static inline void fpu_emulator_init_fpu(void) | 75 | static inline void fpu_emulator_init_fpu(void) |