i386 arch lacks registers to support some tfm assembly, detect and disable

This commit is contained in:
kaleb-himes 2018-11-15 09:52:20 -07:00
parent c592a1d6cb
commit 8399a7a517
2 changed files with 10 additions and 0 deletions

View File

@ -54,6 +54,13 @@ device build. Both are debug builds.
You can make an archive for a device, as well. That is a release build. You can make an archive for a device, as well. That is a release build.
## Known issues:
When building for older iPhone models that support the i386 architecture some
inline assembly in the fast math library assumes 64-bit registers and must be
disabled. This inline assembly can be disabled with `#define TFM_NO_ASM` when
using the setting `#define USE_FAST_MATH` on i386 targets.
# Installing libwolfssl.a # Installing libwolfssl.a
Simply drag the file libwolfssl_XXX_.a and the directory `include` and drop it into Simply drag the file libwolfssl_XXX_.a and the directory `include` and drop it into

View File

@ -18,6 +18,9 @@
/* fast math */ /* fast math */
#define USE_FAST_MATH #define USE_FAST_MATH
#ifdef __i386__
#define TFM_NO_ASM
#endif
#define HAVE_ECC #define HAVE_ECC
/* ECC speedups */ /* ECC speedups */