summaryrefslogtreecommitdiffstats
path: root/include/fpu
diff options
context:
space:
mode:
authorPranith Kumar2016-08-10 20:55:02 +0200
committerPeter Maydell2016-08-15 17:15:38 +0200
commitdfd607671037ff46d5b16ade10e10efdf0d260be (patch)
treee7b8a0d4f9baf16fef60ac5a33bdd7d9fb623362 /include/fpu
parentRevert "vhost-user: Attempt to fix a race with set_mem_table." (diff)
downloadqemu-dfd607671037ff46d5b16ade10e10efdf0d260be.tar.gz
qemu-dfd607671037ff46d5b16ade10e10efdf0d260be.tar.xz
qemu-dfd607671037ff46d5b16ade10e10efdf0d260be.zip
softfloat: Fix warn about implicit conversion from int to int8_t
Change the flag type to 'uint8_t' to fix the implicit conversion error. Signed-off-by: Pranith Kumar <bobby.prani@gmail.com> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Message-id: 20160810185502.32015-1-bobby.prani@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/fpu')
-rw-r--r--include/fpu/softfloat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h
index 0e57ee53c0..1bde349b74 100644
--- a/include/fpu/softfloat.h
+++ b/include/fpu/softfloat.h
@@ -198,7 +198,7 @@ enum {
typedef struct float_status {
signed char float_detect_tininess;
signed char float_rounding_mode;
- signed char float_exception_flags;
+ uint8_t float_exception_flags;
signed char floatx80_rounding_precision;
/* should denormalised results go to zero and set the inexact flag? */
flag flush_to_zero;
@@ -274,7 +274,7 @@ static inline flag get_default_nan_mode(float_status *status)
| Routine to raise any or all of the software IEC/IEEE floating-point
| exception flags.
*----------------------------------------------------------------------------*/
-void float_raise(int8_t flags, float_status *status);
+void float_raise(uint8_t flags, float_status *status);
/*----------------------------------------------------------------------------
| If `a' is denormal and we are in flush-to-zero mode then set the