From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmnuA-0002Jl-SO for qemu-devel@nongnu.org; Fri, 29 Jul 2011 10:19:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qmnu9-0003C3-Lk for qemu-devel@nongnu.org; Fri, 29 Jul 2011 10:19:10 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:61034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qmnu9-0003Bt-FE for qemu-devel@nongnu.org; Fri, 29 Jul 2011 10:19:09 -0400 Received: by gxk26 with SMTP id 26so3053259gxk.4 for ; Fri, 29 Jul 2011 07:19:08 -0700 (PDT) Message-ID: <4E32C159.5050409@codemonkey.ws> Date: Fri, 29 Jul 2011 09:19:05 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1311847830-4307-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1311847830-4307-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 0.16 v3 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: Paolo Bonzini Cc: qemu-devel@nongnu.org On 07/28/2011 05:10 AM, 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. Applied. Thanks. Regards, Anthony Liguori > > v2->v3: > rebase > > 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(-) >