qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]