[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 11/14] linux-user: fpu_save_addr is not used
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 11/14] linux-user: fpu_save_addr is not used |
Date: |
Thu, 2 Jun 2011 14:51:21 +0100 |
On 2 June 2011 12:53, Juan Quintela <address@hidden> wrote:
> It is only read to set the error code?
> err |= __get_user(fpu_save_addr, &sf->fpu_save);
> -
> + (void)fpu_save_addr;
In linux-user __get_user can never generate an error: faults
are always caught by the lock_user_struct() or equivalent call
done beforehand. The error handling is I think a leftover from
code borrowed from the kernel (which does have a __get_user
that might return an error).
So I think the correct fix here is just to remove the __get_user
lines and the variables if they're not used.
-- PMM
- Re: [Qemu-devel] [PATCH 06/14] flatload: end_code was only used in a debug message, (continued)
- [Qemu-devel] [PATCH 05/14] linuxload: id_change was a write only variable, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 07/14] alpha: fn2 was a write only variable, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 08/14] syscall: really return ret code, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 09/14] exec: last_first_tb was only used in !ONLY_USER case, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 11/14] linux-user: fpu_save_addr is not used, Juan Quintela, 2011/06/02
- Re: [Qemu-devel] [PATCH 11/14] linux-user: fpu_save_addr is not used,
Peter Maydell <=
- [Qemu-devel] [PATCH 12/14] linux-user: syscall should use sanitized arg1, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 14/14] lsi53c895a: current_dev is not used, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 13/14] alpha: disp12 is not used for USER emulation, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 10/14] mips: we really need the extra arguments, Juan Quintela, 2011/06/02
- Re: [Qemu-devel] [PATCH 00/14] More gcc 4.6 warnings fixes, Christophe Fergeau, 2011/06/02