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: 125647 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp411631ljf; Wed, 24 Jan 2018 05:21:20 -0800 (PST) X-Google-Smtp-Source: AH8x225g/0+rjr1lH5y/pQys/Zl0i5CQBncLrDnRqT1Fpd+zyHJxiuc1wfc+9wAn4LPmf+pAfy2i X-Received: by 10.129.200.73 with SMTP id k9mr5422717ywl.496.1516800080863; Wed, 24 Jan 2018 05:21:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516800080; cv=none; d=google.com; s=arc-20160816; b=uwWvz0VhLrK/Eqpwy/WAu2MS+GeID6RXA4I5jsPDa45wdmcdNN711Jt27hhQYevk6y NbcxCxANsKFmNZbc+SIWqWlAFQu84MFl3Bs8/7RaJ22CScEZHfrwd8mhx/852AKpK4JX YsV0lOg0BFcJILrxmhzS8eqoOiGhTxDYx6/UJn8RHuQI0GUfNJH7anDKdS/nCC9st5nu 49OxuZ+iktssYCJCm7XlewnZ4IO2PBic6E2JBUS+g/f4x02dGMKySTtw9oU3I8drH/mh ivaSM8g3L1ljlOo7kfqx75GfRIFcoLxEg+Vlb1l0+kDpZyevkE5k3O22A2Y/cWv2FipJ Ox1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=o9l4F51J3K/m7rAhNxcgl01/dGyeul6MP8/bT8/jNP4=; b=uYus+DhtEnEKe4z+aWPm7YABX2TplXOEfNyLDMg4cPYQn0xMsewxU20zerWcffx1bG PVYoOBIQ+dtUEdTZtPuDivffmeMX1J1Jp/M+TU6OvyK/d/ucsQFRjZIlk/JCiEh6EuMt QBr6kPhgb1WUWdwAM/6z5/jlf8gX2xmUwodaaD1wNb/8Hcz8eOz0jalGDmmWAnspkVZ2 MzrMqMjWJvGnHCrwal+ln4QmT73hBcy8QHc0HKYUc+Y+x+8kqWLujjLcuVAPN2bFBoyh utCV01KzmmMwWSJmwkS7cJpPJ98AKQE6BL2xqtiP+hifuhdNsaoPYGQmR+VRbIwth48l UOkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AtIpWnBw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id u129si42849ywa.639.2018.01.24.05.21.20 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Jan 2018 05:21:20 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AtIpWnBw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeKzQ-000168-7r for patch@linaro.org; Wed, 24 Jan 2018 08:21:20 -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-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+patch=linaro.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 --- include/fpu/softfloat.h | 27 --------------------------- 1 file changed, 27 deletions(-) -- 2.15.1 Reviewed-by: Richard Henderson 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;