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: 90790 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (unknown [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2EC19B6EEE for ; Tue, 12 Apr 2011 23:22:47 +1000 (EST) Received: from localhost ([::1]:59649 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9dYK-0003dB-AT for incoming@patchwork.ozlabs.org; Tue, 12 Apr 2011 09:22:44 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9dSk-00050y-O9 for qemu-devel@nongnu.org; Tue, 12 Apr 2011 09:17:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9dSj-0008Ac-Pv for qemu-devel@nongnu.org; Tue, 12 Apr 2011 09:16:58 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:45562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9dSj-0008AY-Jc for qemu-devel@nongnu.org; Tue, 12 Apr 2011 09:16:57 -0400 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 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: patches@linaro.org Subject: [Qemu-devel] [PATCH 1/2] softfloat: Add setter function for tininess detection mode X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.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;