From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN3ge-0007XE-Hi for qemu-devel@nongnu.org; Thu, 19 May 2011 09:54:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QN3gd-00022e-Kr for qemu-devel@nongnu.org; Thu, 19 May 2011 09:54:48 -0400 Received: from mail-px0-f173.google.com ([209.85.212.173]:41300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN3gd-00022R-9I for qemu-devel@nongnu.org; Thu, 19 May 2011 09:54:47 -0400 Received: by pxi16 with SMTP id 16so1793329pxi.4 for ; Thu, 19 May 2011 06:54:46 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 19 May 2011 15:46:58 +0200 Message-Id: <1305812821-6805-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] make endian-independent unaligned memory access functions available in 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 split out the few target-dependent parts of softfloat.h. This is what patch 2 does. Paolo Bonzini (3): move WORDS_ALIGNED to qemu-common.h softfloat: extract softfloat-target.h move unaligned memory access functions to bswap.h Makefile.hw | 2 +- bswap.h | 481 ++++++++++++++++++++++++++++++++++++++++++++++++ configure | 7 +- cpu-all.h | 453 +--------------------------------------------- cpu-common.h | 4 - fpu/softfloat-target.h | 119 ++++++++++++ fpu/softfloat.c | 11 +- fpu/softfloat.h | 70 +------- qemu-common.h | 4 + target-arm/helper.c | 1 + 10 files changed, 619 insertions(+), 533 deletions(-) create mode 100644 fpu/softfloat-target.h -- 1.7.4.4