Commit 410d2c81 authored by Hong H. Pham's avatar Hong H. Pham Committed by David S. Miller

sparc64: Sync FPU state in VIS emulation handler.

Copy the FPU state to the task's thread_info->fpregs for the VIS emulation
functions to access.
Signed-off-by: default avatarHong H. Pham <hong.pham@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 726c12f5
...@@ -807,6 +807,8 @@ int vis_emul(struct pt_regs *regs, unsigned int insn) ...@@ -807,6 +807,8 @@ int vis_emul(struct pt_regs *regs, unsigned int insn)
if (get_user(insn, (u32 __user *) pc)) if (get_user(insn, (u32 __user *) pc))
return -EFAULT; return -EFAULT;
save_and_clear_fpu();
opf = (insn & VIS_OPF_MASK) >> VIS_OPF_SHIFT; opf = (insn & VIS_OPF_MASK) >> VIS_OPF_SHIFT;
switch (opf) { switch (opf) {
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment