[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 06/13] RFC comment out restore_fpu_state (sparc)
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 06/13] RFC comment out restore_fpu_state (sparc) |
Date: |
Wed, 23 Apr 2014 16:11:57 +0300 |
From: Riku Voipio <address@hidden>
A function never called from anywhere, half-complete code
never finished. ifdef completly out. Alternatively we could
just kick it out as the half-ready code could be digged from
git if needed.
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/signal.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 8d2b6c9..2fb7fd1 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -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,
--
1.9.2
- [Qemu-devel] [PATCH 00/13] __{get,put}_user return value cleanup, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 02/13] signal.c setup_frame/x86: __put_user cleanup, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 03/13] signal.c: remove return value from copy_siginfo_to_user, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 12/13] remove __get_user return check from PPC do_setcontext, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 08/13] do_sigreturn - remove __get_user checks, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 09/13] signal.c: setup_frame remove __put_user checks, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 06/13] RFC comment out restore_fpu_state (sparc),
riku . voipio <=
- [Qemu-devel] [PATCH 07/13] do_sigaltstack: remove __get_user value check, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 01/13] signal.c: remove __get/__put_user return value reading, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 13/13] fix gcc-4.9 compiler error on __{get, put]}_user, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 11/13] sparc64_set_context: remove __get_user checks, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 04/13] signal.c: remove return value from setup_sigcontext, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 05/13] signal.c: remove return value from restore_sigcontext, riku . voipio, 2014/04/23
- [Qemu-devel] [PATCH 10/13] remove __put/get error checks from ppc {save, restore}_user_regs, riku . voipio, 2014/04/23
- Re: [Qemu-devel] [PATCH 00/13] __{get, put}_user return value cleanup, Peter Maydell, 2014/04/23