From patchwork Wed Jan 24 13:12:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 865351 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="AtIpWnBw"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zRQmn5GSpz9ryv for ; Thu, 25 Jan 2018 00:21:45 +1100 (AEDT) Received: from localhost ([::1]:48444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeKzn-000168-NK for incoming@patchwork.ozlabs.org; Wed, 24 Jan 2018 08:21:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeKrh-0003DL-LX for qemu-devel@nongnu.org; Wed, 24 Jan 2018 08:13:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeKrg-0003dh-3o for qemu-devel@nongnu.org; Wed, 24 Jan 2018 08:13:21 -0500 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:41892) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eeKrf-0003d1-T4 for qemu-devel@nongnu.org; Wed, 24 Jan 2018 08:13:20 -0500 Received: by mail-wr0-x244.google.com with SMTP id v15so3977855wrb.8 for ; Wed, 24 Jan 2018 05:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=o9l4F51J3K/m7rAhNxcgl01/dGyeul6MP8/bT8/jNP4=; b=AtIpWnBwWz+dfvpWY2xyfMfp2fkLlSLBvks3Svrm+rvEWQ0ZLqUmyblUx9aCVP3Sh5 0tz4qbFrq1cAITkj0c3XqMTssV+OhGTNztSOHSWMhnWy2boK7M+gq4Gv1cy6YEC46mS/ wiRCJlKtZMXTVyUw94dg1fF8DaFV5EHyO/OAc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=o9l4F51J3K/m7rAhNxcgl01/dGyeul6MP8/bT8/jNP4=; b=iBtTgD9FH21Y62lWwAw3PA1+2C+FZXuKbBzYP631WKp+V1jX8Dfck1dc6a8wfnYsnm F6cN1OEJjl44+bKxRP9DBwupKxzRbZ7/kw/VOXlll/cuaMFFz8FgnyAFPp28qxAwMTli hsDv9DeuKsuWGaaLPhl+fZ3cgY5BEJi3Limsozldcuz1k/HNivvv3TNEH5IxO68egs2B dufh2ZWrqaxxALdmd2ZPxj/t8EH//lrmAaXsOH/EEIasd0wgp32kDTg3gvJ77oEHj5cU tEe2hxT2WEPmyyUurFSFdB4fMgcnlPiOVKm+tLR2WnqqOT/g52dbS0Lv3GXaFFa+Gbf6 6vkQ== X-Gm-Message-State: AKwxytfX2jAyJV7Qx88WVgGFjr9WKQd2hkGiuJHQiB0BUTo2QWyrYX2g bb+6KjoimhuPIbxUkaiQonm4hQ== X-Google-Smtp-Source: AH8x224YEcS2idq6zXyMxVIL3/g/liEb47yeic/oPJ6SmTlVgRI8sLWkCN4jDQZ1sTWh7IkM2CZnDw== X-Received: by 10.223.141.206 with SMTP id o72mr6281875wrb.0.1516799598830; Wed, 24 Jan 2018 05:13:18 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 51sm3167678wrw.15.2018.01.24.05.13.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 05:13:16 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9843B3E02CB; Wed, 24 Jan 2018 13:13:15 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org, laurent@vivier.eu, bharata@linux.vnet.ibm.com, andrew@andrewdutcher.com Date: Wed, 24 Jan 2018 13:12:55 +0000 Message-Id: <20180124131315.30567-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180124131315.30567-1-alex.bennee@linaro.org> References: <20180124131315.30567-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 02/22] include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Aurelien Jarno Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" It's not actively built and when enabled things fail to compile. I'm not sure the type-checking is really helping here. Seeing as we "own" our softfloat now lets remove the cruft. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- include/fpu/softfloat.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index d5e99667b6..52af1412de 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -103,32 +103,6 @@ enum { /*---------------------------------------------------------------------------- | Software IEC/IEEE floating-point types. *----------------------------------------------------------------------------*/ -/* Use structures for soft-float types. This prevents accidentally mixing - them with native int/float types. A sufficiently clever compiler and - sane ABI should be able to see though these structs. However - x86/gcc 3.x seems to struggle a bit, so leave them disabled by default. */ -//#define USE_SOFTFLOAT_STRUCT_TYPES -#ifdef USE_SOFTFLOAT_STRUCT_TYPES -typedef struct { - uint16_t v; -} float16; -#define float16_val(x) (((float16)(x)).v) -#define make_float16(x) __extension__ ({ float16 f16_val = {x}; f16_val; }) -#define const_float16(x) { x } -typedef struct { - uint32_t v; -} float32; -/* The cast ensures an error if the wrong type is passed. */ -#define float32_val(x) (((float32)(x)).v) -#define make_float32(x) __extension__ ({ float32 f32_val = {x}; f32_val; }) -#define const_float32(x) { x } -typedef struct { - uint64_t v; -} float64; -#define float64_val(x) (((float64)(x)).v) -#define make_float64(x) __extension__ ({ float64 f64_val = {x}; f64_val; }) -#define const_float64(x) { x } -#else typedef uint16_t float16; typedef uint32_t float32; typedef uint64_t float64; @@ -141,7 +115,6 @@ typedef uint64_t float64; #define const_float16(x) (x) #define const_float32(x) (x) #define const_float64(x) (x) -#endif typedef struct { uint64_t low; uint16_t high;