From patchwork Tue Jan 9 12:22:34 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: 123904 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3956086qgn; Tue, 9 Jan 2018 04:23:28 -0800 (PST) X-Google-Smtp-Source: ACJfBot1VEqh+ShVWvU19sHXwb5eaHEtO4dg7XIvXWTKG+OCzhl9c/Qq6yClkLi0eD6PoKrOZ/Cb X-Received: by 10.129.71.3 with SMTP id u3mr3249848ywa.218.1515500608137; Tue, 09 Jan 2018 04:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515500608; cv=none; d=google.com; s=arc-20160816; b=bUEj5fmMLzTZ6HClUy5ty7JrstN6D90OQUm16eMdRY0kMqcXZ0fbuYRLeqZjwaPVhB BQKPYwR5ovDzZQKi43sBOd3m+3oedZxVgxk+5QW5rDPRQIGkt4HQUW2mF5e8mkzjwbqK q5pawLd27nLPctu64NGbm6593+WMQUJ/vq0vJ+jmIfYaf9/SSORTwbkqv82fs5C938cP a/fQvTG5No81atrRr2YkutbBMufaJKduG1bpJzhLaaROz8uIXV9EtOEklVNG4mPTEt38 tqwmj+UzZw8N6uY8UrVXMdo9EBL+ffJHP5bmOC65zGrFScHF3K6WMJpb32LOnRn74OHf gr7w== 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=L6mrvDmtVkKmIkRxzK+vK/NcD5hlMS27SRyRFfjXW2kgXVaa7zhNLMKT+x+J77R+RT 4BZhm8m4Zv9z6zulg8usUjveeBd1mNagxO7s7GYHlpJ4HaEVgPx7PYdtklKFb13JypeC J1xlXumQM8zrjHbAyg33lGbwqbnAGcCnmUmYxWx38Gqo3VFEy4KWVAIG3zQF4dqbPXjX S4gOHUizQ2ZqOoWWBC7qcRtB2FPSCKVWGioadXu/SZR7+Js8vDqOnOefMwzxiIC5HVvN JDOTGtBhXewsx+VTy2FnsLHvpHxeBe8vlfYs8fkZjhn9jlxbKZzbz8QswAqc0CgetXAT tt6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=JqCn+PeI; 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 j63si3050022yba.86.2018.01.09.04.23.28 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 09 Jan 2018 04:23:28 -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=JqCn+PeI; 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]:49424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYswB-0006bs-Kd for patch@linaro.org; Tue, 09 Jan 2018 07:23:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYsvj-0006ZI-UO for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:23:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYsvg-0006G7-Nt for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:22:59 -0500 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:47022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYsvg-0006DR-H0 for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:22:56 -0500 Received: by mail-wr0-x243.google.com with SMTP id g21so8109291wrb.13 for ; Tue, 09 Jan 2018 04:22:56 -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=JqCn+PeIebEm3CYYjD+ITlLXQA1SE1mYgIBbYZbCF/FWYUFwdvFvarZHaPGYsXLfqt W0nb7sp+CCamkQgF+kc4qpdw2zyjGnFO7f10y5exnFFtnyugi+rEIf6eKnRzxveRTdC0 bEa4y2K3nofY4n3izciSWEtNnU6TfQ7bni5IM= 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=PaknmEO5BpulxbBU2MihhS9mUsJ8ldAZlbmSs1Ug8klLGpvPWmmRw4R5/2keuRrxy7 5BseBCYb+U7fKcKfo/MwC4305LVRfn94GBqNxJXfFDhp3ORwDkJRhcV80VMTOc47wbZF R9xMxEKGNX0h3tr6DZs0O2lQoL4SGDkeBPaf6UoM/PnTkjKQywd1lXz/ECEKDxE8KSZx 12Ru/smGLf8gpvF2YNfeM9u6AD+5emnF7otc1gcaLc1LhZEMrpUUnGtp3GUuOG1cnHPz 5CjVjWmw0bIwM44YPURlr37Yl3XaY+DwuNhk7vgmoaIgNxaE8AUsS9XUeFKJnnyv4HyU v9Dg== X-Gm-Message-State: AKGB3mI+/+CQvKCd4mBcXBCmKyqrGxfWXf7GPxtQ6K+ksNqAG33SttX/ jZVUeYeFw+DZSMdOTwbMvmdcOA== X-Received: by 10.223.128.34 with SMTP id 31mr14505972wrk.248.1515500575299; Tue, 09 Jan 2018 04:22:55 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id q7sm15216522wra.83.2018.01.09.04.22.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jan 2018 04:22:54 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 4EB993E02F2; Tue, 9 Jan 2018 12:22:52 +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: Tue, 9 Jan 2018 12:22:34 +0000 Message-Id: <20180109122252.17670-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180109122252.17670-1-alex.bennee@linaro.org> References: <20180109122252.17670-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::243 Subject: [Qemu-devel] [PATCH v2 02/20] 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 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;