diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-04-12 13:56:40 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-12 23:33:33 +0200 |
commit | ce4fe9bba4bd471ee1ef5d403551fc01b3bdad51 (patch) | |
tree | 0070a566c0fa3c3bdd49766de23f84474c083549 /fpu | |
parent | ead61c137f2d57f0dee45ffa097e8518f847a530 (diff) | |
download | qemu-ce4fe9bba4bd471ee1ef5d403551fc01b3bdad51.tar.gz qemu-ce4fe9bba4bd471ee1ef5d403551fc01b3bdad51.tar.bz2 qemu-ce4fe9bba4bd471ee1ef5d403551fc01b3bdad51.zip |
softfloat: Add setter function for tininess detection mode
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 <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'fpu')
-rw-r--r-- | fpu/softfloat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 7abcbe899e..c7654d4c63 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; |