diff options
Diffstat (limited to 'emulators/qemu-devel/files/patch-fpu-softfloat-native.c')
-rw-r--r-- | emulators/qemu-devel/files/patch-fpu-softfloat-native.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-fpu-softfloat-native.c b/emulators/qemu-devel/files/patch-fpu-softfloat-native.c new file mode 100644 index 0000000..0a7f301 --- /dev/null +++ b/emulators/qemu-devel/files/patch-fpu-softfloat-native.c @@ -0,0 +1,17 @@ +Index: qemu/fpu/softfloat-native.c +@@ -228,7 +228,15 @@ + *----------------------------------------------------------------------------*/ + float64 float64_trunc_to_int( float64 a STATUS_PARAM ) + { ++#if defined(__FreeBSD__) && __FreeBSD__ <= 4 ++ float64 ret; ++ fpsetround(FP_RZ); ++ ret = rint(a); ++ fpsetround(STATUS(float_rounding_mode)); ++ return ret; ++#else + return trunc(a); ++#endif + } + + float64 float64_round_to_int( float64 a STATUS_PARAM )
\ No newline at end of file |