From 8399a7a5170e28f35a82b14b764014a4bedbabf7 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Thu, 15 Nov 2018 09:52:20 -0700 Subject: [PATCH] i386 arch lacks registers to support some tfm assembly, detect and disable --- IDE/XCODE/README.md | 7 +++++++ IDE/XCODE/user_settings.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/IDE/XCODE/README.md b/IDE/XCODE/README.md index b2bfae757..6e065b1f1 100644 --- a/IDE/XCODE/README.md +++ b/IDE/XCODE/README.md @@ -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. +## 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 Simply drag the file libwolfssl_XXX_.a and the directory `include` and drop it into diff --git a/IDE/XCODE/user_settings.h b/IDE/XCODE/user_settings.h index 132c9235d..5030b89ce 100644 --- a/IDE/XCODE/user_settings.h +++ b/IDE/XCODE/user_settings.h @@ -18,6 +18,9 @@ /* fast math */ #define USE_FAST_MATH + #ifdef __i386__ + #define TFM_NO_ASM + #endif #define HAVE_ECC /* ECC speedups */