@@ -2367,11 +2367,11 @@ sigsegv:
unlock_user(sf, sf_addr, sizeof(struct target_signal_frame));
force_sig(TARGET_SIGSEGV);
}
+#if 0
static inline int
restore_fpu_state(CPUSPARCState *env, qemu_siginfo_fpu_t *fpu)
{
int err;
-#if 0
#ifdef CONFIG_SMP
if (current->flags & PF_USEDFPU)
regs->psr &= ~PSR_EF;
@@ -2383,27 +2383,22 @@ restore_fpu_state(CPUSPARCState *env, qemu_siginfo_fpu_t *fpu)
#endif
current->used_math = 1;
current->flags &= ~PF_USEDFPU;
-#endif
-#if 0
if (verify_area (VERIFY_READ, fpu, sizeof(*fpu)))
return -EFAULT;
-#endif
/* XXX: incorrect */
err = copy_from_user(&env->fpr[0], fpu->si_float_regs[0],
(sizeof(abi_ulong) * 32));
err |= __get_user(env->fsr, &fpu->si_fsr);
-#if 0
err |= __get_user(current->thread.fpqdepth, &fpu->si_fpqdepth);
if (current->thread.fpqdepth != 0)
err |= __copy_from_user(¤t->thread.fpqueue[0],
&fpu->si_fpqueue[0],
((sizeof(unsigned long) +
(sizeof(unsigned long *)))*16));
-#endif
return err;
}
-
+#endif
static void setup_rt_frame(int sig, struct target_sigaction *ka,
target_siginfo_t *info,