Skip to content

Commit

Permalink
sparc64: Sync FPU state in VIS emulation handler.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hong H. Pham authored and davem330 committed Dec 4, 2008
1 parent 726c12f commit 410d2c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sparc64/kernel/visemul.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 410d2c8

Please sign in to comment.