Received: from eggs.gnu.org ([140.186.70.92]:40646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QU06Q-0006Vf-2Y for qemu-devel@nongnu.org; Tue, 07 Jun 2011 13:30:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QU06O-0002sz-MU for qemu-devel@nongnu.org; Tue, 07 Jun 2011 13:30:05 -0400 Received: from fe02x02-cgp.akado.ru ([77.232.31.163]:62313 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QU06O-0002rH-9V for qemu-devel@nongnu.org; Tue, 07 Jun 2011 13:30:04 -0400 Date: Tue, 7 Jun 2011 21:29:46 +0400 (MSD) From: malc In-Reply-To: <4DEE57CA.8070902@twiddle.net> Message-ID: References: <1307370348-28400-1-git-send-email-pbonzini@redhat.com> <1307370348-28400-4-git-send-email-pbonzini@redhat.com> <4DED3109.1070902@twiddle.net> <4DEE57CA.8070902@twiddle.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Paolo Bonzini , qemu-devel@nongnu.org On Tue, 7 Jun 2011, Richard Henderson wrote: > On 06/06/2011 04:07 PM, malc wrote: > > Depends on how bswap_16 is defined. If it is __builtin_bswap16 > > then 4.5.0 and 4.6.0 generate byte reversed loads, and previous > > versions lack that builtin, so i don't think this generic code > > should go in. > > It would continue to be defined as-is, without direct reference > to the __builtin_bswap functions. But you're right that the > generic code would depend on the bswap optimization pass that > recognizes the mask/shift/or pattern and converts it to the > builtins internally. > > What if we kept the ppc ifdefs, but converted the rest to the > gcc generic code? > No objections. -- mailto:av1474@comtv.ru