[Qemu-devel] [PATCH v2 39/43] softfloat: do not include glib headers

Alex Bennée posted 43 patches 7 years, 9 months ago
There is a newer version of this series
[Qemu-devel] [PATCH v2 39/43] softfloat: do not include glib headers
Posted by Alex Bennée 7 years, 9 months ago
From: "Emilio G. Cota" <cota@braap.org>

To ease the cross-compilation of softfloat.o.

Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 fpu/softfloat.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 70e0c40a1c..a2a5d4ea33 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -82,6 +82,7 @@ this code that are retained.
 /* softfloat (and in particular the code in softfloat-specialize.h) is
  * target-dependent and needs the TARGET_* macros.
  */
+#define QEMU_NO_GLIB
 #include "qemu/osdep.h"
 #include "qemu/bitops.h"
 #include "fpu/softfloat.h"
@@ -105,6 +106,9 @@ this code that are retained.
 *----------------------------------------------------------------------------*/
 #include "softfloat-specialize.h"
 
+/* glib headers are not included due to QEMU_NO_GLIB */
+#define g_assert_not_reached() assert(false)
+
 /*----------------------------------------------------------------------------
 | Returns the fraction bits of the half-precision floating-point value `a'.
 *----------------------------------------------------------------------------*/
-- 
2.17.0


Re: [Qemu-devel] [PATCH v2 39/43] softfloat: do not include glib headers
Posted by Richard Henderson 7 years, 9 months ago
On 04/19/2018 03:58 AM, Alex Bennée wrote:
> From: "Emilio G. Cota" <cota@braap.org>
> 
> To ease the cross-compilation of softfloat.o.
> 
> Signed-off-by: Emilio G. Cota <cota@braap.org>
> ---
>  fpu/softfloat.c | 4 ++++
>  1 file changed, 4 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~