Received: from eggs.gnu.org ([2001:4830:134:3::10]:37008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YINex-0007FM-9q for qemu-devel@nongnu.org; Mon, 02 Feb 2015 15:31:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YINeu-0005RB-Q8 for qemu-devel@nongnu.org; Mon, 02 Feb 2015 15:31:51 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:54929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YINeu-0005OZ-Hk for qemu-devel@nongnu.org; Mon, 02 Feb 2015 15:31:48 -0500 From: Peter Maydell Date: Mon, 2 Feb 2015 20:31:33 +0000 Message-Id: <1422909096-32268-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/3] softfloat: Remove STATUS macros List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Richard Henderson , "Maciej W. Rozycki" , patches@linaro.org This patchset expands out all the uses of the softfloat STATUS_VAR, STATUS_PARAM and STATUS macros and removes their definitions. In my opinion these macros are basically just obfuscating the passing around and use of a float_status pointer in the softfloat code, and serve no useful purpose. I used to think that we should retain them on the offchance we wanted to pull in new softfloat upstream code, but this is wrong on three counts now: (1) there's never been any new softfloat upstream code to take (2) even if there were, we couldn't take it because of the license (3) these macros aren't even in the upstream version; they were added by Fabrice when he integrated softfloat into QEMU We've never used whatever flexibility might in theory be permitted by the indirection through this set of macros, so this patchset just deletes them all. The changes make an alarmingly large diffstat, but it's just mechanical expansion plus fixing of coding style issues on the affected lines. (Lots of style fixing because the softfloat upstream coding is (a) a long way away from QEMU's and (b) bonkers.) This obviously is likely to induce merge conflicts with any other in-flight softfloat changes, for which I apologise in advance. [Next on the cleanup list: get rid of those 'int8/int32/int64' types...] Peter Maydell (3): softfloat: Expand out the STATUS_PARAM macro softfloat: expand out STATUS_VAR softfloat: expand out STATUS macro fpu/softfloat-specialize.h | 124 ++-- fpu/softfloat.c | 1609 ++++++++++++++++++++++++-------------------- include/fpu/softfloat.h | 371 +++++----- target-mips/msa_helper.c | 74 +- 4 files changed, 1188 insertions(+), 990 deletions(-) -- 1.9.1