[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/NEWLIB PATCH 2/2] Automatically select FLOAT_POINT on arm64 for newlib



There are a few reasons that we can't support newlibc + nofp:
1. -mgeneral-regs-only is not a compilable gcc option to newlib.
Even with -DNO_FLOAT_POINT, some source files of newlib will
generated float point instructions and then cause compilation errors

2. with -mcpu=XXX,+nofp newlib can be built, but from the disassembly
result, newlib will still use q0-q31.

In a word, if you want to link with newlib on arm, float point should
be enabled in Unikraft.

Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 Config.uk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Config.uk b/Config.uk
index ab127f0..2110029 100644
--- a/Config.uk
+++ b/Config.uk
@@ -13,6 +13,7 @@ menuconfig LIBNEWLIBC
        select LIBVFSCORE
        select LIBPOSIX_PROCESS
        select LIBPOSIX_USER
+       select FLOAT_POINT if ARCH_ARM_64
 
 if LIBNEWLIBC
        config LIBNEWLIBC_WANT_IO_C99_FORMATS
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.