From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMd8x-0001or-SW for qemu-devel@nongnu.org; Fri, 12 Oct 2012 07:11:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMd8r-00078z-2F for qemu-devel@nongnu.org; Fri, 12 Oct 2012 07:11:03 -0400 Received: from afflict.kos.to ([92.243.29.197]:57694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMd8q-00078s-RB for qemu-devel@nongnu.org; Fri, 12 Oct 2012 07:10:56 -0400 Date: Fri, 12 Oct 2012 14:10:55 +0300 From: Riku Voipio Message-ID: <20121012111055.GA28952@afflict.kos.to> References: <1349983336-9974-1-git-send-email-rth@twiddle.net> <1349983336-9974-5-git-send-email-rth@twiddle.net> <5077237B.40502@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5077237B.40502@twiddle.net> Subject: Re: [Qemu-devel] [PATCH 4/6] linux-user: Rewrite __get_user/__put_user with __builtin_choose_expr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org Hi, On Thu, Oct 11, 2012 at 12:52:27PM -0700, Richard Henderson wrote: > On 10/11/2012 12:22 PM, Richard Henderson wrote: > > The previous formuation with multiple assignments to __typeof(*hptr) falls > > down when hptr is qualified const. E.g. with const struct S *p, p->f is > > also qualified const. > > > > With this formulation, there's no assignment to any local variable. > > > > Signed-off-by: Richard Henderson > Scratch that... I lost the unaligned access capability. > I'll have to re-work the patch. I've just prepared the rest of your patch for pending pull request[1]. Since changing __get_user/__put_user impacts more than just sigaction, do you mind if we put this patch (and thus sigaction change as well) to a later pull request? Riku [1] http://git.linaro.org/gitweb?p=people/rikuvoipio/qemu.git;a=shortlog;h=refs/heads/linux-user-for-upstream