From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmNYH-00031F-9R for qemu-devel@nongnu.org; Thu, 28 Jul 2011 06:10:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmNYF-0001xL-BG for qemu-devel@nongnu.org; Thu, 28 Jul 2011 06:10:48 -0400 Received: from mail-vw0-f47.google.com ([209.85.212.47]:53161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmNYF-0001wb-70 for qemu-devel@nongnu.org; Thu, 28 Jul 2011 06:10:47 -0400 Received: by vws2 with SMTP id 2so2851895vws.34 for ; Thu, 28 Jul 2011 03:10:46 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 28 Jul 2011 12:10:27 +0200 Message-Id: <1311847830-4307-1-git-send-email-pbonzini@redhat.com> Subject: [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: qemu-devel@nongnu.org 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. 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(-) -- 1.7.6