From nobody Mon May 6 08:33:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1565342430; cv=none; d=zoho.com; s=zohoarc; b=LOiiYKx7XmGQC9nFoT7QWZN8rmidEb3e8Gj9oI1voH6TkXQxs5UvaFrmU519r0XMEf0WoFdMrLsiul1vI4rju4saYxhZPXtJ7kW+UkSAt+DTnvn6T4xBuW3qArocsWWzu5K347txPtW66VAaZzfEKhl2IfFhzsZ0tLTMKjp3gn8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565342430; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ds83hJyVy3euPF2S1v2mM17n4r45qbvhIwoyu2sO0lg=; b=hAL2QGpwRpmQY3yKMLFRlUjK7yBgmcV6ernNhWXToNm1ima9dAcKnshCe3fdQnCI0A96P6rzPojp3w5dhGjYIoVXxwDmmLJOfaPevxv6aYM4XkTdu7znzLH4dzPZTfI5s5AlU5Lw3qrzyhS1C/6VYEnso2Nb2e6g4e7c/RKKeWQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15653424306081003.0504696667786; Fri, 9 Aug 2019 02:20:30 -0700 (PDT) Received: from localhost ([::1]:57546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw14R-0007VS-Bh for importer@patchew.org; Fri, 09 Aug 2019 05:20:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48007) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw13o-0005x7-OO for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw13n-0007YG-QM for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:44 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:43219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw13n-0007XG-GB for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:43 -0400 Received: by mail-wr1-x441.google.com with SMTP id p13so22980724wru.10 for ; Fri, 09 Aug 2019 02:19:43 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n12sm8239608wrw.25.2019.08.09.02.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2019 02:19:41 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 005341FF8C; Fri, 9 Aug 2019 10:19:41 +0100 (BST) 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=ds83hJyVy3euPF2S1v2mM17n4r45qbvhIwoyu2sO0lg=; b=wG5LdLv/jeloLlOka4BHFlK3tP7KftKjcNXc5AHuL983nTS26nFSgTpbaTl/nVdS99 UW6XB5KGwiQhCjsgTf+sEyl8mXlaZ5S2lGxqibMPnq3pWYZAuZoQeflFKlDYMhZ2mKoy fWS92ljiaPD+m7df9gsdpC19A35xtL1Yre6GyPfd3Nxa0BTTZGhaxCFkiAhdTWSandM+ 30SLb1R/wcc9n05n3cIXa6dBUUwHWArAvZTjf7T/JjPvfnNW8d6HR10oJ3uslSrxgPxy phSG6eU+RIGqcXlxC5qdJ6PSEHenvOZjJtnTlsCExTccAybXfglJ+pEG1AvUajY8n4NY x2OA== 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=ds83hJyVy3euPF2S1v2mM17n4r45qbvhIwoyu2sO0lg=; b=So3Np9xMdBkgDxjjbnUoHZpwBe+vfIlg19t4URAstWJV58974s2aTL6UzpO++lEyXM +Jk2/LJ6R9ghFaQRviFrFya2yn2iJdmt2Cs/VlaxVsaVgj90mtYZ5OeUl6ceCfkDXGPi BiPPoU5yk1PECSK1Zr8ZpqL6OBochN3K7KMSIUppk1LkT5f+ytmAeZMgZfabFjYtMeZt J+5QqqIZphAz5WYMcH256nn3YEZVQR9TacbS9Fu4nKiKNud/NOfe+joH3o4JrMfMc0Qk qpIxjbVVZEoATHYk61UVjFI2Vy0U4ysUBJ8YhhT4lDCZ8kKCV3ZEKJjtSOllHmwbiEiR AABw== X-Gm-Message-State: APjAAAUylddaxyhHM2agqqzJ6C1btfCyD2UMFfVtctcvxD7t/5aNWQjF U72+VVFrbeKijsPet9miZsP82w== X-Google-Smtp-Source: APXvYqxfLcyoWlk+N9ZwcNoHVEgUdPMOgPc4D1kCGH4naHVuxtCnDn+PvvqfLpCxH9afeYsk0BniSg== X-Received: by 2002:a5d:4b41:: with SMTP id w1mr2997397wrs.23.1565342382417; Fri, 09 Aug 2019 02:19:42 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Aug 2019 10:19:34 +0100 Message-Id: <20190809091940.1223-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809091940.1223-1-alex.bennee@linaro.org> References: <20190809091940.1223-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 Subject: [Qemu-devel] [PATCH v2 1/7] fpu: move LIT64 helper to softfloat-types X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , armbru@redhat.com, Aurelien Jarno , Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This simple pasting helper can be used by those who don't need the entire softfloat api. Move it to the smaller types header. Signed-off-by: Alex Benn=C3=A9e Acked-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/fpu/softfloat-types.h | 2 ++ include/fpu/softfloat.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fpu/softfloat-types.h b/include/fpu/softfloat-types.h index 2aae6a89b19..7e88152dfc4 100644 --- a/include/fpu/softfloat-types.h +++ b/include/fpu/softfloat-types.h @@ -80,6 +80,8 @@ this code that are retained. #ifndef SOFTFLOAT_TYPES_H #define SOFTFLOAT_TYPES_H =20 +#define LIT64( a ) a##LL + /* This 'flag' type must be able to hold at least 0 and 1. It should * probably be replaced with 'bool' but the uses would need to be audited * to check that they weren't accidentally relying on it being a larger ty= pe. diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 3ff3fa52245..d9333eb65b8 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -82,8 +82,6 @@ this code that are retained. #ifndef SOFTFLOAT_H #define SOFTFLOAT_H =20 -#define LIT64( a ) a##LL - /*------------------------------------------------------------------------= ---- | Software IEC/IEEE floating-point ordering relations *-------------------------------------------------------------------------= ---*/ --=20 2.20.1 From nobody Mon May 6 08:33:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1565342546; cv=none; d=zoho.com; s=zohoarc; b=efWyPtM7GDmn8Y+YoeeDX77q0WHslqSUk/21rEnInZSmEZAoqhE5G8Zo1LiRkKeXaaVmqxM+iz2ghmYyOMthdPEEjavxcNwkbOBrOHNLklEU108EuBI4lMIGdt763DBKR7s39PuTPzhfBdEhf5NUQ2Ll0wU3B49JwwWuNHWcGek= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565342546; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=eEMHgW3CEtVoVhBt+Bh6CcPxxVC+F3D05JqH8hwh+u8=; b=B5S3/hWFv9OHlv5Bn28rRRvOOrfvrtj6VBX9pML9A4DBmZjLvv7efjMLc8mtrTmQbesq97902WBDA7kvpfZEbsBIn+qncxIOE6quaV+F2uzJ2U7tIPbb8b5214ZoKOv8IKcsCWSzBCel1AqO+ZRjbMFgk/S2uKIZ7WFUeJJaHdk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565342546174612.7488313671115; Fri, 9 Aug 2019 02:22:26 -0700 (PDT) Received: from localhost ([::1]:57596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw16P-0003ug-95 for importer@patchew.org; Fri, 09 Aug 2019 05:22:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48038) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw13q-0005xQ-H9 for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw13o-0007ZT-NW for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:46 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:35961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw13o-0007YZ-GE for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:44 -0400 Received: by mail-wm1-x343.google.com with SMTP id g67so4978981wme.1 for ; Fri, 09 Aug 2019 02:19:44 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a26sm8572727wmg.45.2019.08.09.02.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2019 02:19:41 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 15B761FF8F; Fri, 9 Aug 2019 10:19:41 +0100 (BST) 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=eEMHgW3CEtVoVhBt+Bh6CcPxxVC+F3D05JqH8hwh+u8=; b=cmSW7tlXM+73QMGnVfDLSah8HW6ICyaZ1pinWS9BasGbEScKDipDYS/W1VkSqjNoSZ ZcCfX/yQTC83OAFlxzXabGcC8r6uT24v1boiuuNUduar6/W9gpRzE999kMoRyt8+TpzU SLof7R6wakknvLMJNeTPbMDLlkN4+Atcv+D72m43hq2dtxgibK6lSnUjcVr7pWQECzbp C4vaCbapAw6xczzmjIq5qGxzrxwmId/18jI0oyhzbNxoQyzIoVAXz4fYvZYI3RC0YNlj ijMMxCBagCBnHDSVvJCA+qq+z6FM0MYQvUjumXtOpOYrT5iCnhnKhe5yPyY9kA/mtcKf cwAw== 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=eEMHgW3CEtVoVhBt+Bh6CcPxxVC+F3D05JqH8hwh+u8=; b=oJ0YXiEqqEYD22vCoSFEpKPpCsW5A4q4JvEd6Wijb5E+pa2upfHQtJ0aCLsPQFRyv9 IDNGwSR8opxg1R5I71SOVswb4zC9+Ji2YWy6B9UAvGCehDOz412ZmhcsuEzcYnbCEYQN oWIo8robFPy5g9Y/lBiLMnu/z7gBbL4Uyhqe5kB4+U/pceeq1MpdknYKzol1MxbXaukM a2oVhEPdXYoS064uyfRc3TDScs+0Kva38BcZlQJ1swVMQHXuTjMOOPJEeiCVciWxElmO jFVBHp5hxcO1MTxidDVAoXMZAlxm/1pbqxnhSYfBwN4rEMvv/URSh+yS3Rxz676x24vl usQw== X-Gm-Message-State: APjAAAWX1ysiVWTZivx2h3ldMEEQUCiqaEB/mebPqpvwPC0cS/a+zvQX f2gNin7wOl9c9NAuOG0Q4RnKt+GUCRY= X-Google-Smtp-Source: APXvYqwawdB1tStf9Fqh4rGLSR5zBHoz3pYsL79hR/n0AC7C4vkDMAnwOPOvQ2RX3uldQT9C2CjsqQ== X-Received: by 2002:a05:600c:296:: with SMTP id 22mr2697363wmk.148.1565342383302; Fri, 09 Aug 2019 02:19:43 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Aug 2019 10:19:35 +0100 Message-Id: <20190809091940.1223-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809091940.1223-1-alex.bennee@linaro.org> References: <20190809091940.1223-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH v2 2/7] fpu: move inline helpers into a separate header X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , armbru@redhat.com, Aurelien Jarno , Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) There are a bunch of users of the inline helpers who do not need access to the entire softfloat API. Move those inline helpers into a new header file which can be included without bringing in the rest of the world. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- v2 - don't squash up quite so much --- include/fpu/softfloat-helpers.h | 132 ++++++++++++++++++++++++++++++++ include/fpu/softfloat.h | 63 +-------------- 2 files changed, 133 insertions(+), 62 deletions(-) create mode 100644 include/fpu/softfloat-helpers.h diff --git a/include/fpu/softfloat-helpers.h b/include/fpu/softfloat-helper= s.h new file mode 100644 index 00000000000..e0baf24c8f5 --- /dev/null +++ b/include/fpu/softfloat-helpers.h @@ -0,0 +1,132 @@ +/* + * QEMU float support - standalone helpers + * + * This is provided for files that don't need the access to the full + * set of softfloat functions. Typically this is cpu initialisation + * code which wants to set default rounding and exceptions modes. + * + * The code in this source file is derived from release 2a of the SoftFloat + * IEC/IEEE Floating-point Arithmetic Package. Those parts of the code (and + * some later contributions) are provided under that license, as detailed = below. + * It has subsequently been modified by contributors to the QEMU Project, + * so some portions are provided under: + * the SoftFloat-2a license + * the BSD license + * GPL-v2-or-later + * + * Any future contributions to this file after December 1st 2014 will be + * taken to be licensed under the Softfloat-2a license unless specifically + * indicated otherwise. + */ + +/* +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D +This C header file is part of the SoftFloat IEC/IEEE Floating-point +Arithmetic Package, Release 2a. + +Written by John R. Hauser. This work was made possible in part by the +International Computer Science Institute, located at Suite 600, 1947 Center +Street, Berkeley, California 94704. Funding was partially provided by the +National Science Foundation under grant MIP-9311980. The original version +of this code was written as part of a project to build a fixed-point vector +processor in collaboration with the University of California at Berkeley, +overseen by Profs. Nelson Morgan and John Wawrzynek. More information +is available through the Web page `http://HTTP.CS.Berkeley.EDU/~jhauser/ +arithmetic/SoftFloat.html'. + +THIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort +has been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT +TIMES RESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO +PERSONS AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ANY +AND ALL LOSSES, COSTS, OR OTHER PROBLEMS ARISING FROM ITS USE. + +Derivative works are acceptable, even for commercial purposes, so long as +(1) they include prominent notice that the work is derivative, and (2) they +include prominent notice akin to these four paragraphs for those parts of +this code that are retained. + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D +*/ + +#ifndef _SOFTFLOAT_HELPERS_H_ +#define _SOFTFLOAT_HELPERS_H_ + +#include "fpu/softfloat-types.h" + +static inline void set_float_detect_tininess(int val, float_status *status) +{ + status->float_detect_tininess =3D val; +} + +static inline void set_float_rounding_mode(int val, float_status *status) +{ + status->float_rounding_mode =3D val; +} + +static inline void set_float_exception_flags(int val, float_status *status) +{ + status->float_exception_flags =3D val; +} + +static inline void set_floatx80_rounding_precision(int val, + float_status *status) +{ + status->floatx80_rounding_precision =3D val; +} + +static inline void set_flush_to_zero(flag val, float_status *status) +{ + status->flush_to_zero =3D val; +} + +static inline void set_flush_inputs_to_zero(flag val, float_status *status) +{ + status->flush_inputs_to_zero =3D val; +} + +static inline void set_default_nan_mode(flag val, float_status *status) +{ + status->default_nan_mode =3D val; +} + +static inline void set_snan_bit_is_one(flag val, float_status *status) +{ + status->snan_bit_is_one =3D val; +} + +static inline int get_float_detect_tininess(float_status *status) +{ + return status->float_detect_tininess; +} + +static inline int get_float_rounding_mode(float_status *status) +{ + return status->float_rounding_mode; +} + +static inline int get_float_exception_flags(float_status *status) +{ + return status->float_exception_flags; +} + +static inline int get_floatx80_rounding_precision(float_status *status) +{ + return status->floatx80_rounding_precision; +} + +static inline flag get_flush_to_zero(float_status *status) +{ + return status->flush_to_zero; +} + +static inline flag get_flush_inputs_to_zero(float_status *status) +{ + return status->flush_inputs_to_zero; +} + +static inline flag get_default_nan_mode(float_status *status) +{ + return status->default_nan_mode; +} + +#endif /* _SOFTFLOAT_HELPERS_H_ */ diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index d9333eb65b8..ecb8ba01149 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -93,68 +93,7 @@ enum { }; =20 #include "fpu/softfloat-types.h" - -static inline void set_float_detect_tininess(int val, float_status *status) -{ - status->float_detect_tininess =3D val; -} -static inline void set_float_rounding_mode(int val, float_status *status) -{ - status->float_rounding_mode =3D val; -} -static inline void set_float_exception_flags(int val, float_status *status) -{ - status->float_exception_flags =3D val; -} -static inline void set_floatx80_rounding_precision(int val, - float_status *status) -{ - status->floatx80_rounding_precision =3D val; -} -static inline void set_flush_to_zero(flag val, float_status *status) -{ - status->flush_to_zero =3D val; -} -static inline void set_flush_inputs_to_zero(flag val, float_status *status) -{ - status->flush_inputs_to_zero =3D val; -} -static inline void set_default_nan_mode(flag val, float_status *status) -{ - status->default_nan_mode =3D val; -} -static inline void set_snan_bit_is_one(flag val, float_status *status) -{ - status->snan_bit_is_one =3D val; -} -static inline int get_float_detect_tininess(float_status *status) -{ - return status->float_detect_tininess; -} -static inline int get_float_rounding_mode(float_status *status) -{ - return status->float_rounding_mode; -} -static inline int get_float_exception_flags(float_status *status) -{ - return status->float_exception_flags; -} -static inline int get_floatx80_rounding_precision(float_status *status) -{ - return status->floatx80_rounding_precision; -} -static inline flag get_flush_to_zero(float_status *status) -{ - return status->flush_to_zero; -} -static inline flag get_flush_inputs_to_zero(float_status *status) -{ - return status->flush_inputs_to_zero; -} -static inline flag get_default_nan_mode(float_status *status) -{ - return status->default_nan_mode; -} +#include "fpu/softfloat-helpers.h" =20 /*------------------------------------------------------------------------= ---- | Routine to raise any or all of the software IEC/IEEE floating-point --=20 2.20.1 From nobody Mon May 6 08:33:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1565342431; cv=none; d=zoho.com; s=zohoarc; b=hJLrYpQGToZevMTnzkyhREv501AkKtb7wP1BVpAlwBtlfjjDfcpn9ALFrmmkAIuPKgGz/rTPWqWt2EQru2FYWP94ZuIanX3RRpF72uIbq8amKJi26oE8cz1DiO6XeHfOjq/avo0Akuk/6X3Tp9M2j1/fLAsM6isZ8QIsMdJdJYs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565342431; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=/m2fkWm2cNUYmNUkZdHYoujbGrC7KdFbzlNmstGf9Cc=; b=agijzFz20dFxuZouXF2s1dIsJd+uPHZQsHs+GfsALpxZ9gjkIweb/qHw4pJV+1qzeNIgY7O+bxHmLeN7aJVTPPGCHswwDXgnhh0HQzw7K3WQrAgdovp59rZZ2eYnvkCzH446bAR92lfGgEyJPcDc5Pj9mGHaFDW/evHqolkMNzY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565342431090973.4680287004844; Fri, 9 Aug 2019 02:20:31 -0700 (PDT) Received: from localhost ([::1]:57548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw14V-0007kw-3q for importer@patchew.org; Fri, 09 Aug 2019 05:20:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48035) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw13q-0005xP-EZ for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw13p-0007aq-HI for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:46 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:35690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw13p-0007ZS-BF for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:45 -0400 Received: by mail-wm1-x342.google.com with SMTP id l2so4980249wmg.0 for ; Fri, 09 Aug 2019 02:19:45 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b186sm3939441wmb.3.2019.08.09.02.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2019 02:19:42 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 295301FF90; Fri, 9 Aug 2019 10:19:41 +0100 (BST) 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=/m2fkWm2cNUYmNUkZdHYoujbGrC7KdFbzlNmstGf9Cc=; b=mnOiNaDGcKQXTGeDlpJf092E2OLQRl4RhAqf9J6gVDI/wcFc7cFFv3xDcX6Det6/F2 s6AKOPp2R07sOLo0zfdoaJvzXnflBsUzlwDgSSpAnDWWOkTa9sAiT1odCJxYcf68HDa1 lUwuBqnqwkGo/6YZD5vQWbTFxjclNJwMNPGKMUJI5V7IygD3kk/rUlAejt9EOnm2LcB8 +kCkWS4BsCkwaHfFRpMVMYlO8SkvkoA1XNSgGUMU0zfRCN6RySudc747DAhN1GpIVN2H tGTQiI2+cfk8rvHEkFTY7gFwPmgobu7a9Zgjamc670mrrK3rfB7RPuLjr6+UkHGsFhK2 9nIw== 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=/m2fkWm2cNUYmNUkZdHYoujbGrC7KdFbzlNmstGf9Cc=; b=c+JuOkMCgtDPxnX39a+inx58D0zxeSsAxGxAyrNUHYZnSq7bmUTcKagM5MIOmdTaA5 za6oupmWWky4lL2ll1QMN6WIJWaf+9RU0ECFGjcx2CKJSVscXzbf0qOVGvjVSJHx4Ocv Y7KpXpUwofHDVxB3OCDWJVmoFradXjIVxH0gBqa7xxJ4kWwLrgDDIdYRxyF3oIPgi3oa /QNI2GpUXe1yE2vIfWwrdLA1u6n5wzE+oYvpUhIMuN6X2DCjJFSMzlp5jVxrsIl1+uKv PIIe8SVCfaRQj3bKJ2NfgbCodtGZr69ObtWCaPe2mfWSxzct3HfGdoR8BdsdZ15FRMN9 /e0Q== X-Gm-Message-State: APjAAAVr636o5ahxaIAjMgr+UAH/OIZEA7FxIFNI7yXsA2s69RwW5SJm /9DDfEXPgEGD0lAqBf+V/iBDtA== X-Google-Smtp-Source: APXvYqyVLzfmuM3J5s8XmdVVDAS3PsidKf7ILbEg55gfyzXhDLaPC8+8vKH4YIvstd4bXGkIo024wQ== X-Received: by 2002:a1c:a615:: with SMTP id p21mr3744930wme.121.1565342384202; Fri, 09 Aug 2019 02:19:44 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Aug 2019 10:19:36 +0100 Message-Id: <20190809091940.1223-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809091940.1223-1-alex.bennee@linaro.org> References: <20190809091940.1223-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 Subject: [Qemu-devel] [PATCH v2 3/7] fpu: make softfloat-macros "self-contained" X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , armbru@redhat.com, Aurelien Jarno , Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The macros use the "flags" type and to be consistent if anyone just needs the macros we should bring in the header we need. There is an outstanding TODO to audit the use of "flags" and replace with bool at which point this include could be dropped. Signed-off-by: Alex Benn=C3=A9e Acked-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/fpu/softfloat-macros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fpu/softfloat-macros.h b/include/fpu/softfloat-macros.h index c55aa6d1742..e698bca4e1d 100644 --- a/include/fpu/softfloat-macros.h +++ b/include/fpu/softfloat-macros.h @@ -82,6 +82,8 @@ this code that are retained. #ifndef FPU_SOFTFLOAT_MACROS_H #define FPU_SOFTFLOAT_MACROS_H =20 +#include "fpu/softfloat-types.h" + /*------------------------------------------------------------------------= ---- | Shifts `a' right by the number of bits given in `count'. If any nonzero | bits are shifted off, they are ``jammed'' into the least significant bit= of --=20 2.20.1 From nobody Mon May 6 08:33:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1565342500; cv=none; d=zoho.com; s=zohoarc; b=oc4cwsvLkygp2znYhAxuzS1bwvwFn5vljrsXJTOpVZfW1vfpFoff38xca2iuQDEiIU2sPjBt6HOhLaITgidI4v4YiqzA4llnP5JtfyD/vraSfcVYpgrutb23sEl884ywnRtvJsnjfMW/rIvlDjG4bkfWCbjORUDYs0TAzlsKfdI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565342500; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=xDB7zhPlulJY0AZfd2YO/hnOBkqPwNAEQbIkpxXlrNI=; b=QGRYBW2C2WrTm+jU+jWc8cVm4aOW1WSHWwyCYnJvGUPh00HdptS2YhyVvft3zMgPmJdZDdpyMjCn61VngwqBKjTHKv5EEk5vj+bSTNFSPzPPg1kp5xfjzypiGFYwHWcBZDBjZrsycstwTiclqZ+y4XWVuzOC/N3Gm/kL2PckhDs= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565342500137682.8200585860669; Fri, 9 Aug 2019 02:21:40 -0700 (PDT) Received: from localhost ([::1]:57574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw15e-0001yy-7w for importer@patchew.org; Fri, 09 Aug 2019 05:21:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48049) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw13r-0005xe-1Z for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw13q-0007cm-2X for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:46 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:36135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw13p-0007aY-Sq for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:46 -0400 Received: by mail-wr1-x444.google.com with SMTP id r3so3826497wrt.3 for ; Fri, 09 Aug 2019 02:19:45 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o4sm3846959wmh.35.2019.08.09.02.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2019 02:19:42 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3F8271FF91; Fri, 9 Aug 2019 10:19:41 +0100 (BST) 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=xDB7zhPlulJY0AZfd2YO/hnOBkqPwNAEQbIkpxXlrNI=; b=PgHYLKRd3nAf1LBHchr63z30M9y4JzRXgcaggAR1vJ+ykYgUNY6kl95pvYeT0xYZvu qqwmbzsyU62rfy5SNDgrthNKYZSb549XcEQ8OW7IVhjKEPYjnYQ34JV+9m8RhEcEAbOp qe2VDi+MLKePWJUYHJd0gzTo/ovSE2hZQNup0ZZ/3xZ9y3C/xPaD306EX/3lA0iuTENs +dk2juSyx2JEvA8OUBpkRo+dgqeZOsXLD9oU3S3zYdz8M2yCqMn+oqPF/2nms/NMNvXa URnCSBBYK35JXFm1aKN+MyYCXcQXYU3Q/aIBI/C9vZHiGz5RvjkzTN21W1o4R7EeVvl0 AkVQ== 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=xDB7zhPlulJY0AZfd2YO/hnOBkqPwNAEQbIkpxXlrNI=; b=ejSgwWCFMwv0YtWVI9gq9EGmZR2FG9oz6mLACDstJwZczOZmc7xWs7LFb4sAPwgTes 9ZFGygs8Ay06z1KdPQX4kvUJCCg9EEb69nGwsWLTOqYuCUEZtq44InNR+Ig9ev/1JV9C dLPqeTBinkdKGwtmgxM1iS2Q1EsdpUGMDOTZ2bmpTncuOYmYNFwJOCdEusWfJSO7vJq7 fxoPIOk6Oh9zNxZXq5WZjsgJkxS7Z5k4+H8THxWxbXgd16eMmRXEgE/5fDilwx8KhJf3 7FR2lP8avubMP1iCghBrjqIDYARgu28DkWpgIngzyEjwe6IlVsiNzUuI24CQ8G+jnN2E KHWw== X-Gm-Message-State: APjAAAXzzSgY1/0lbQKc/7c81LFBsaEBfnYoIQiXxULhlcSIzGgYMIEY WLhqwkeUkGrhW4pfIyI1xoirkw== X-Google-Smtp-Source: APXvYqwcZCq5atKMtmSg8VgHiLr803Gu11CfRsdc9RHFn19NEGrgzTU2S9DRyocND4G+WpH5LEFs0g== X-Received: by 2002:a5d:4b91:: with SMTP id b17mr2599543wrt.57.1565342384773; Fri, 09 Aug 2019 02:19:44 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Aug 2019 10:19:37 +0100 Message-Id: <20190809091940.1223-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809091940.1223-1-alex.bennee@linaro.org> References: <20190809091940.1223-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [PATCH v2 4/7] fpu: rename softfloat-specialize.h -> .inc.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , armbru@redhat.com, Aurelien Jarno , Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This is not a normal header and should only be included in the main softfloat.c file to bring in the various target specific specialisations. Indeed as it contains non-inlined C functions it is not even a legal header. Rename it to match our included C convention. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- fpu/{softfloat-specialize.h =3D> softfloat-specialize.inc.c} | 0 fpu/softfloat.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename fpu/{softfloat-specialize.h =3D> softfloat-specialize.inc.c} (100%) diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.inc.c similarity index 100% rename from fpu/softfloat-specialize.h rename to fpu/softfloat-specialize.inc.c diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 2ba36ec3703..80a16458304 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -652,7 +652,7 @@ static inline float64 float64_pack_raw(FloatParts p) | are propagated from function inputs to output. These details are target- | specific. *-------------------------------------------------------------------------= ---*/ -#include "softfloat-specialize.h" +#include "softfloat-specialize.inc.c" =20 /* Canonicalize EXP and FRAC, setting CLS. */ static FloatParts sf_canonicalize(FloatParts part, const FloatFmt *parm, --=20 2.20.1 From nobody Mon May 6 08:33:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1565342633; cv=none; d=zoho.com; s=zohoarc; b=Fz0SHQW0Qpr7NWGl7aOU8teDNfZ3Org1S2Fpc1adQ+f1P0eQqljUmSdkfw3PJtzYg/ASkJ+pacgYSWmUlJAK+DbXlZT+g5fZGZ5KQPIQRz58iNd6TUtihJOywmkAgvUR6I3ZrbYy9oxw7WK0T/AwzCdkBh6SUTQJt3UL/GWhE6k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565342633; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=pH6yorJSkceA3ksBNVomDICRxgnjhzqlXkTAbU0+vbc=; b=naEXWBHZQRXFP+Esz0ehgOwdttNW76VPubEm+m6wDyN9HGQYM6UNutPN0ceplxlbnBRSYY8xT7FGaBPsCFg/oWJDHV9K/XvI0R/qEBxQU3s8XuciFW4Il31m/8P02wgb13nwxaA+t1/P14dAKHo7jGhNdL865Z+dgMnLdWUCsBQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565342633806472.78275438394496; Fri, 9 Aug 2019 02:23:53 -0700 (PDT) Received: from localhost ([::1]:57610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw17o-0005eW-T4 for importer@patchew.org; Fri, 09 Aug 2019 05:23:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48094) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw13s-000617-Vd for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw13r-0007f9-RK for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:48 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:52109) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw13r-0007e9-Ki for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:47 -0400 Received: by mail-wm1-x344.google.com with SMTP id 207so4988819wma.1 for ; Fri, 09 Aug 2019 02:19:47 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c1sm5763943wmc.40.2019.08.09.02.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2019 02:19:43 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 57FBA1FF92; Fri, 9 Aug 2019 10:19:41 +0100 (BST) 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=pH6yorJSkceA3ksBNVomDICRxgnjhzqlXkTAbU0+vbc=; b=x/BNiUQzc0YrqGXyzZG3EF3SNKeDkn9sPFKWkj0CqUHXxg12JF2xdeGcFCmOlFgzbD P8NpEYutEUxYMi6tw3p5BdVsunTJPK6VVbkNB1CIxlr7Ge0c3PZiB0nCbaR5i9ymnq9o Vgr6tlkn13fs69Rm8a/nOKospOI6s3lnie5BE8qlAK6HseIg33ZkT7NI3teAH+q+qyOS FZ57kcKuWcDcuOpc1JE3dsKnXfPF17z4s13RYcbFnSHeuBDeKCn9qmxERQwklU7ByyYW smChdcp1b7Re2GxHKZiEZVzDxWaL4sMi3zAExFNlLRY1OmJepBCoTAlTkpj+DoxBs1qD sxEQ== 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=pH6yorJSkceA3ksBNVomDICRxgnjhzqlXkTAbU0+vbc=; b=ouCCfl6jYeKiDTDSGvxLq2rKhoNS6Ene/+JMe/gHNQswUSxt65NsenmGHbQFO7bvML oXIwDVPix1fiX5KyyOpz7BA7LHWtL6QQSJifI0pBZ8dyGAc4DDO6E//gDedpIzgcfipC FlefA7ctQvVSh6h9XUaa209kqHUHlSwelZA/twEHOcYhU5bRz1x+qdKxBI0ggzr3G74L LUb8TVm6PD0YCjAetURNmcDZmqxL6lA60VxWNOqEKDwjk2Ayvn/LICe8QjkeBiG1MTg2 50PKIMJ5h6zmnpNI+zDJmmwsokleO2bFcmsnp/NWxKKtEKw4mFQifxznbWw2nQM6vYoU pSow== X-Gm-Message-State: APjAAAX9k5mVXwco3JrAOd3s//Dh0zYLJAdTO509G15BeXwD/C3dOinP pnBD+/iWUbJqaGSGw8G+WACRcw== X-Google-Smtp-Source: APXvYqxiF+dCi8jtuMIR2xz/Hm5iWrUNkxqDStJkMFlfyMCNtnllEIjhM6AR5QH9v4AqL45yUXNO6A== X-Received: by 2002:a1c:721a:: with SMTP id n26mr1142246wmc.88.1565342386500; Fri, 09 Aug 2019 02:19:46 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Aug 2019 10:19:38 +0100 Message-Id: <20190809091940.1223-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809091940.1223-1-alex.bennee@linaro.org> References: <20190809091940.1223-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH v2 5/7] target/mips: rationalise softfloat includes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksandar Rikalo , Riku Voipio , armbru@redhat.com, Laurent Vivier , Aleksandar Markovic , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We should avoid including the whole of softfloat headers in cpu.h and explicitly include it only where we will be calling softfloat functions. We can use the -types.h in cpu.h for the few bits that are global. We also move the restore_snan_bit_mode into internal.h and include -helpers.h there. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- v2 - move restore_snan_bit_mode to internal.h --- linux-user/mips/cpu_loop.c | 1 + target/mips/cpu.h | 8 +------- target/mips/internal.h | 7 +++++++ target/mips/msa_helper.c | 1 + target/mips/op_helper.c | 1 + 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/linux-user/mips/cpu_loop.c b/linux-user/mips/cpu_loop.c index 0ba894fa7aa..39915b3fde2 100644 --- a/linux-user/mips/cpu_loop.c +++ b/linux-user/mips/cpu_loop.c @@ -22,6 +22,7 @@ #include "qemu.h" #include "cpu_loop-common.h" #include "elf.h" +#include "internal.h" =20 # ifdef TARGET_ABI_MIPSO32 # define MIPS_SYS(name, args) args, diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 21c0615e020..d235117dab3 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -5,7 +5,7 @@ =20 #include "cpu-qom.h" #include "exec/cpu-defs.h" -#include "fpu/softfloat.h" +#include "fpu/softfloat-types.h" #include "mips-defs.h" =20 #define TCG_GUEST_DEFAULT_MO (0) @@ -1195,12 +1195,6 @@ void itc_reconfigure(struct MIPSITUState *tag); /* helper.c */ target_ulong exception_resume_pc(CPUMIPSState *env); =20 -static inline void restore_snan_bit_mode(CPUMIPSState *env) -{ - set_snan_bit_is_one((env->active_fpu.fcr31 & (1 << FCR31_NAN2008)) =3D= =3D 0, - &env->active_fpu.fp_status); -} - static inline void cpu_get_tb_cpu_state(CPUMIPSState *env, target_ulong *p= c, target_ulong *cs_base, uint32_t *f= lags) { diff --git a/target/mips/internal.h b/target/mips/internal.h index b2b41a51ab4..49a7a7d8f56 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -7,6 +7,7 @@ #ifndef MIPS_INTERNAL_H #define MIPS_INTERNAL_H =20 +#include "fpu/softfloat-helpers.h" =20 /* MMU types, the first four entries have the same layout as the CP0C0_MT field. */ @@ -226,6 +227,12 @@ static inline void restore_flush_mode(CPUMIPSState *en= v) &env->active_fpu.fp_status); } =20 +static inline void restore_snan_bit_mode(CPUMIPSState *env) +{ + set_snan_bit_is_one((env->active_fpu.fcr31 & (1 << FCR31_NAN2008)) =3D= =3D 0, + &env->active_fpu.fp_status); +} + static inline void restore_fp_status(CPUMIPSState *env) { restore_rounding_mode(env); diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c index a5a86572b4a..f24061e2af7 100644 --- a/target/mips/msa_helper.c +++ b/target/mips/msa_helper.c @@ -22,6 +22,7 @@ #include "internal.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" +#include "fpu/softfloat.h" =20 /* Data format min and max values */ #define DF_BITS(df) (1 << ((df) + 3)) diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 9e2e02f8586..f88a3ab9043 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -25,6 +25,7 @@ #include "exec/exec-all.h" #include "exec/cpu_ldst.h" #include "sysemu/kvm.h" +#include "fpu/softfloat.h" =20 /*************************************************************************= ****/ /* Exceptions processing helpers */ --=20 2.20.1 From nobody Mon May 6 08:33:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1565342591; cv=none; d=zoho.com; s=zohoarc; b=FZhtqXCmDrU3flPHlInKw/Dl0vAAlXwHCDhrEqamx+YP5Cuc3osnV7JBGmA8IxN59+C+6CpnpRpK55n2qcdB8WDfL8vxhY4jwS5z6HO/kugEdA9TXpMtfBvhFVJsUkYT/4bQ6kTX0Aj341XHrt79V0yGIIII+G+hS1KNM+XHWX8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565342591; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ECv7P3HJHBY/e1Rr1VXbOKCzKrV4OGAXQsEe8ka+MiU=; b=Qu186fEkd9x3I/v/BTfTi0+ukWMk9VU8BomoI2Rl9jQVWNHZuj+qNKRqb72NWJmOJ3GTgCrAkQgljmbEfsh1sNi0FKcHjaWscPyYd/UIATth8e0nCHkDb5IDspgjptI9HbREsxsFsMaqAE5Phl8aQknNq6WWa8svgdZ/radUeXE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565342591356414.78971581587246; Fri, 9 Aug 2019 02:23:11 -0700 (PDT) Received: from localhost ([::1]:57604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw177-0004mq-Qj for importer@patchew.org; Fri, 09 Aug 2019 05:23:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48074) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw13s-0005zo-19 for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw13r-0007e1-10 for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:47 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:42068) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw13q-0007cv-Q7 for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:46 -0400 Received: by mail-wr1-x443.google.com with SMTP id b16so864691wrq.9 for ; Fri, 09 Aug 2019 02:19:46 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id q18sm121726388wrw.36.2019.08.09.02.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2019 02:19:43 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 70F571FF93; Fri, 9 Aug 2019 10:19:41 +0100 (BST) 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=ECv7P3HJHBY/e1Rr1VXbOKCzKrV4OGAXQsEe8ka+MiU=; b=POyAZCZo37L7qmzJ2UiFAtXuV52U+/+i4UscFsPLALzPiWP9jFiCZO3Z415eD8TNgN egZ9HD9uJUJzs/lBfi7+PHYOpKqOm8toJ90fSrkPlbTNYxPU0UUGNkFVXzMVehUuSYUj KaTOYp/nN6S9NuEozulvRnjJOUFSkKGtGOv5J1MqPZfm4ekfp+ZDOyObGnHem3Lz7D6p DpIjSsFaJw8ee3zcLbGU0BwjGQZyz3DGjPr8tNWEh6v1EBQOLtEYOeGPFtNzcemRFLMP LpKlIc9a7RyESKZEQWPtFSi+EWvc/3+Vd/QO4j/I+ytSLNC68xEt3NqYmLaf0LlZ2K3Y NHyw== 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=ECv7P3HJHBY/e1Rr1VXbOKCzKrV4OGAXQsEe8ka+MiU=; b=NFvMQjDLchY+ittPwH5cyL00rQru6Osij+zj8QLYDv+gWV7+FJ0WrkEH8MQtKY3O01 liN6FEU8nYX9loVA+ZivgRRt38y3wH9S4+XdrMMbsZSZQaeDZL+J30gPMo7XczOxipBK F2d2F0Yyk+NNeMJmqXRIAoHX/w6QYc1eLAV3Be7Bzh/PDXuHTUeiZmkH5pH5uPKRGSNW tGh+pi2Hh+m7kstY+vz9poaisp6AnBzlhCizguAsggQ6SghgF+ISYDnNOOdbNXOHiyqZ iUzA+MSO8s2ltZK7xC60hxn7SLGSzddk5kLZu7iWSLYlvjMyqshaoyxqV37QevOju8Y1 oYWg== X-Gm-Message-State: APjAAAV4LYkDuiG5e/Je0M+AGpANk+LeJNgWZAUKhj0QqS4rD3QyDgV6 HFA5ab0FzaCwqjfK+Xst6yLAr5qWkLo= X-Google-Smtp-Source: APXvYqwhVWDecAFxQcrBYFm0lfO3vwJQhv27lTk4b+5Vsi3ylJv7VFX+Pv5lsAWnAr38LSHPgMQl8A== X-Received: by 2002:adf:eb49:: with SMTP id u9mr23604502wrn.215.1565342385660; Fri, 09 Aug 2019 02:19:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Aug 2019 10:19:39 +0100 Message-Id: <20190809091940.1223-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809091940.1223-1-alex.bennee@linaro.org> References: <20190809091940.1223-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH v2 6/7] target/riscv: rationalise softfloat includes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:RISC-V TCG CPUs" , Sagar Karandikar , Bastian Koppelmann , Palmer Dabbelt , Richard Henderson , armbru@redhat.com, Alistair Francis , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We should avoid including the whole of softfloat headers in cpu.h and explicitly include it only where we will be calling softfloat functions. We can use the -types.h and -helpers.h in cpu.h for the few bits that are global. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Acked-by: Palmer Dabbelt Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/riscv/cpu.c | 1 + target/riscv/cpu.h | 2 +- target/riscv/fpu_helper.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index f8d07bd20ad..6d52f97d7c3 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -27,6 +27,7 @@ #include "qemu/error-report.h" #include "hw/qdev-properties.h" #include "migration/vmstate.h" +#include "fpu/softfloat-helpers.h" =20 /* RISC-V CPU definitions */ =20 diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 0adb307f329..240b31e2ebb 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -22,7 +22,7 @@ =20 #include "qom/cpu.h" #include "exec/cpu-defs.h" -#include "fpu/softfloat.h" +#include "fpu/softfloat-types.h" =20 #define TCG_GUEST_DEFAULT_MO 0 =20 diff --git a/target/riscv/fpu_helper.c b/target/riscv/fpu_helper.c index b4f818a6465..0b79562a690 100644 --- a/target/riscv/fpu_helper.c +++ b/target/riscv/fpu_helper.c @@ -21,6 +21,7 @@ #include "qemu/host-utils.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" +#include "fpu/softfloat.h" =20 target_ulong riscv_cpu_get_fflags(CPURISCVState *env) { --=20 2.20.1 From nobody Mon May 6 08:33:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1565342432; cv=none; d=zoho.com; s=zohoarc; b=bbiE8ikbGyou238Z9m85OtOVXrMZhSlt/kSje87pFGZepjsxUSIMzA2zz0rov1SgfpwHIWauv4+HDIIaI6n9Y+WOaqH4Ds6zL3+ceta4SzgulwkCfnKT/QtKHv0LpeLx0hsfzbVI1TEoCfSjmTRN4LpePHbg3uMUwsKdQUJZKzc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565342432; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=jg/eQC5u9xh3QI/xnJki4J/dDhPvHCNndIskUdzw8E8=; b=MxGNR7o083yrHAGBinEQz6v10kMeNVMH5FeJl69aJ0m1SuKsFzkrNiVp1NHOZhnJ9F+FF/myv/mdk0WOwGJFLFuVdRK/x5dV7fmBDbxwMMgmjhLwuRboNuzs3DRxkM7dBH/F9gKi4IbG42EIyj0lUBNQ04jk5vKRlbK6WdiNnPk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1565342432826499.15274791291677; Fri, 9 Aug 2019 02:20:32 -0700 (PDT) Received: from localhost ([::1]:57550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw14Z-0007wL-PO for importer@patchew.org; Fri, 09 Aug 2019 05:20:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48107) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw13t-00063F-PX for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw13s-0007gX-O2 for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:49 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:43220) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw13s-0007fL-Gv for qemu-devel@nongnu.org; Fri, 09 Aug 2019 05:19:48 -0400 Received: by mail-wr1-x441.google.com with SMTP id p13so22980931wru.10 for ; Fri, 09 Aug 2019 02:19:48 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id r4sm63281255wrq.82.2019.08.09.02.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2019 02:19:44 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 8D86C1FF96; Fri, 9 Aug 2019 10:19:41 +0100 (BST) 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=jg/eQC5u9xh3QI/xnJki4J/dDhPvHCNndIskUdzw8E8=; b=F6knsPHgbPXLBvUFks8QHXu9m4XQHH2xVA5M6n4ENY46YQBWlTQPO7xHYzYUQnwiTT 8Npc1+Oio0opINc8Xw81bXd5bjizSms8+RjBm1N+tqmUXT3nxDhYMcC5Mj7z2VHh3n+K GnwDFeGzXnWDb5ClSADwvcL5EvxQ/lV1DHm18KqaaybsQD8k0YTnqCZX+nMJSkdTUqiQ yNMxRWzpImSVCU7BjR/XP+dgMEuhQwhfgZeeGAhaKjRNqfosd9xXMEvTN53XbckRthxr XVuCXJCIrMNivpyZtIGdGskK7GcL+OQ8TBhk3Ujos7PXqRypo5+FK/ShJCpooS7kwoF3 WE2Q== 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=jg/eQC5u9xh3QI/xnJki4J/dDhPvHCNndIskUdzw8E8=; b=uc2r1zrGWgBgkSbVweEdYo5Q+Aa33yHSoZ6HOO78i3wm3oxDHV6AcapFHJzBzrmSiO 5NmhTeEkOEt6S4KlhiR0QDfaBx4k12o8wQ9cyQswBNF9ujETP/TutRQfEAqBb1BE73Xw QsveAAbvpNcHPvGLb8hKEQAfhx7h6xy2xjSs0N2+z7c+venpvqcN0gejmpdDkcNzsi2u mIth3uRwoNPWsKJZpywVYdBQgvfqdOImDrlL43xXBhnZJzCVNaEvbeypaeemeCAyQWc3 eRjwBGZyp55+aGsgZFmGgIGLDNcX8wa5A5lLlrLlIFdQ+PY2YQTJ29WX4SQu/mopQerm 8N1g== X-Gm-Message-State: APjAAAXk+pwIOmfQDheZTZYczfSDCWDIDO9U4ZXmsi+QZrSBZhbIgYxv 5TmHyTDz7CCSTQvi2YhlN8UuYyY8M7E= X-Google-Smtp-Source: APXvYqy9cIYZAjGACCUC65d+paJni9COdNQ1xy+YZz/nfebrWTJqL4BcTfBnhLYQZ25sogmyZAp+dw== X-Received: by 2002:adf:e710:: with SMTP id c16mr13188156wrm.292.1565342387409; Fri, 09 Aug 2019 02:19:47 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Aug 2019 10:19:40 +0100 Message-Id: <20190809091940.1223-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809091940.1223-1-alex.bennee@linaro.org> References: <20190809091940.1223-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 Subject: [Qemu-devel] [PATCH v2 7/7] targets (various): use softfloat-helpers.h where we can X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Hildenbrand , Bastian Koppelmann , Cornelia Huck , Richard Henderson , armbru@redhat.com, "open list:S390 general arch..." , "Edgar E. Iglesias" , Guan Xuetao , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Aurelien Jarno , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Generally the cpu and non-FP helper files just want to manipulate the softfloat flags. For this they can just use the -helpers.h include which brings in a minimal number of inline helpers. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/alpha/helper.c | 2 +- target/microblaze/cpu.c | 2 +- target/s390x/cpu.c | 2 +- target/sh4/cpu.c | 3 +-- target/tricore/helper.c | 2 +- target/unicore32/cpu.c | 1 - 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/target/alpha/helper.c b/target/alpha/helper.c index 93b8e788b18..c6998348df4 100644 --- a/target/alpha/helper.c +++ b/target/alpha/helper.c @@ -21,7 +21,7 @@ =20 #include "cpu.h" #include "exec/exec-all.h" -#include "fpu/softfloat.h" +#include "fpu/softfloat-types.h" #include "exec/helper-proto.h" #include "qemu/qemu-print.h" =20 diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c index 0bec54b2f8a..9cfd7445e7d 100644 --- a/target/microblaze/cpu.c +++ b/target/microblaze/cpu.c @@ -28,7 +28,7 @@ #include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "exec/exec-all.h" -#include "fpu/softfloat.h" +#include "fpu/softfloat-helpers.h" =20 static const struct { const char *name; diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index 736a7903e22..5db016672bb 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -42,7 +42,7 @@ #include "sysemu/sysemu.h" #include "sysemu/tcg.h" #endif -#include "fpu/softfloat.h" +#include "fpu/softfloat-helpers.h" =20 #define CR0_RESET 0xE0UL #define CR14_RESET 0xC2000000UL; diff --git a/target/sh4/cpu.c b/target/sh4/cpu.c index 816d6d7f311..d0a7707991f 100644 --- a/target/sh4/cpu.c +++ b/target/sh4/cpu.c @@ -25,8 +25,7 @@ #include "cpu.h" #include "migration/vmstate.h" #include "exec/exec-all.h" -#include "fpu/softfloat.h" - +#include "fpu/softfloat-helpers.h" =20 static void superh_cpu_set_pc(CPUState *cs, vaddr value) { diff --git a/target/tricore/helper.c b/target/tricore/helper.c index a6803368506..d5db7b2c03f 100644 --- a/target/tricore/helper.c +++ b/target/tricore/helper.c @@ -19,7 +19,7 @@ =20 #include "cpu.h" #include "exec/exec-all.h" -#include "fpu/softfloat.h" +#include "fpu/softfloat-helpers.h" #include "qemu/qemu-print.h" =20 enum { diff --git a/target/unicore32/cpu.c b/target/unicore32/cpu.c index 802e2f1eba5..b27fb9689ff 100644 --- a/target/unicore32/cpu.c +++ b/target/unicore32/cpu.c @@ -17,7 +17,6 @@ #include "cpu.h" #include "migration/vmstate.h" #include "exec/exec-all.h" -#include "fpu/softfloat.h" =20 static void uc32_cpu_set_pc(CPUState *cs, vaddr value) { --=20 2.20.1