From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeSB4-00041F-MJ for qemu-devel@nongnu.org; Wed, 06 Jul 2011 09:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeSB2-0000EF-R0 for qemu-devel@nongnu.org; Wed, 06 Jul 2011 09:30:06 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:45927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeSB2-0000Di-I0 for qemu-devel@nongnu.org; Wed, 06 Jul 2011 09:30:04 -0400 Received: by wyf28 with SMTP id 28so5380395wyf.4 for ; Wed, 06 Jul 2011 06:30:03 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4E146357.6080909@redhat.com> Date: Wed, 06 Jul 2011 15:29:59 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1307370348-28400-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1307370348-28400-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 0/3] make endian-independent unaligned memory access functions available to libhw List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 06/06/2011 04:25 PM, Paolo Bonzini wrote: > Functions like ldl_be_p and ldl_le_p are currently used only as building > blocks for {ld,st}XX_p. As such, they are in cpu-all.h even though they > have absolutely no dependency on the target. > > In order to make them globally available, this series moves them to > bswap.h instead. > > An interesting part of this is that there are functions also for floating > point values. Leaving them in cpu-all.h would be possible but untidy. > In fact handling these is easy, but it requires to make softfloat.h > target-dependent as well. This is what patch 2 does. > > v1->v2: > rebase, use softfloat-specialize.h instead of introducing > softfloat-target.h > > Paolo Bonzini (3): > move WORDS_ALIGNED to qemu-common.h > softfloat: change default nan definitions to variables > move unaligned memory access functions to bswap.h > > Makefile.hw | 2 +- > bswap.h | 474 ++++++++++++++++++++++++++++++++++++++++++++ > configure | 3 +- > cpu-all.h | 446 +----------------------------------------- > cpu-common.h | 4 - > fpu/softfloat-specialize.h | 72 +++++++ > fpu/softfloat.h | 60 +----- > qemu-common.h | 4 + > 8 files changed, 562 insertions(+), 503 deletions(-) > Ping? Paolo