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: Hong H. Pham <hong.pham@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Hong H. Pham and committed by David S. Miller 410d2c81 726c12f5

+2
+2
arch/sparc64/kernel/visemul.c
··· 807 if (get_user(insn, (u32 __user *) pc)) 808 return -EFAULT; 809 810 opf = (insn & VIS_OPF_MASK) >> VIS_OPF_SHIFT; 811 switch (opf) { 812 default:
··· 807 if (get_user(insn, (u32 __user *) pc)) 808 return -EFAULT; 809 810 + save_and_clear_fpu(); 811 + 812 opf = (insn & VIS_OPF_MASK) >> VIS_OPF_SHIFT; 813 switch (opf) { 814 default: