From patchwork Tue Apr 12 12:56:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 973 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:47:53 -0000 Delivered-To: patches@linaro.org Received: by 10.68.59.138 with SMTP id z10cs176900pbq; Tue, 12 Apr 2011 05:56:46 -0700 (PDT) Received: by 10.42.227.194 with SMTP id jb2mr4729714icb.454.1302613005483; Tue, 12 Apr 2011 05:56:45 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk [81.2.115.146]) by mx.google.com with ESMTPS id wv15si15912164icb.41.2011.04.12.05.56.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 05:56:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1Q9d97-0004ZN-9q; Tue, 12 Apr 2011 13:56:41 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 1/2] softfloat: Add setter function for tininess detection mode Date: Tue, 12 Apr 2011 13:56:40 +0100 Message-Id: <1302613001-17540-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1302613001-17540-1-git-send-email-peter.maydell@linaro.org> References: <1302613001-17540-1-git-send-email-peter.maydell@linaro.org> Add a setter function for the underflow tininess detection mode, in line with the similar functions for other parts of the float status structure. Signed-off-by: Peter Maydell --- fpu/softfloat.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 90f4250..618537e 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -211,6 +211,10 @@ typedef struct float_status { void set_float_rounding_mode(int val STATUS_PARAM); void set_float_exception_flags(int val STATUS_PARAM); +INLINE void set_float_detect_tininess(int val STATUS_PARAM) +{ + STATUS(float_detect_tininess) = val; +} INLINE void set_flush_to_zero(flag val STATUS_PARAM) { STATUS(flush_to_zero) = val;