From: Hong H. Pham Date: Thu, 4 Dec 2008 17:12:57 +0000 (-0800) Subject: sparc64: Sync FPU state in VIS emulation handler. X-Git-Tag: MMI-PSA29.97-13-9~30513^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=410d2c8187ed969238ba98008c1d57307a56cfd8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/visemul.c b/arch/sparc64/kernel/visemul.c index 69f8a35c6bcd..b956fd71c131 100644 --- a/arch/sparc64/kernel/visemul.c +++ b/arch/sparc64/kernel/visemul.c @@ -807,6 +807,8 @@ int vis_emul(struct pt_regs *regs, unsigned int insn) if (get_user(insn, (u32 __user *) pc)) return -EFAULT; + save_and_clear_fpu(); + opf = (insn & VIS_OPF_MASK) >> VIS_OPF_SHIFT; switch (opf) { default: