fixup! [LibOS] initialize fp state values and add helper functions

This commit is contained in:
Isaku Yamahata
2020-01-31 21:38:29 -08:00
parent a90a6180ce
commit f20698a5d8
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -166,6 +166,7 @@ static inline void do_pause (void);
#define DEBUG_HERE() \
do { debug("%s (" __FILE__ ":%d)\n", __func__, __LINE__); } while (0)
extern bool fpu_xstate_enabled;
extern unsigned long fpu_xstate_size;
attribute_nofp void fpstate_save(struct _libc_fpstate* fpstate);
attribute_nofp void fpstate_restore(const struct _libc_fpstate* fpstate);
+1 -1
View File
@@ -53,7 +53,7 @@ size_t g_pal_alloc_align;
const unsigned int glibc_version = GLIBC_VERSION;
static bool fpu_xstate_enabled = false;
bool fpu_xstate_enabled = false;
static uint64_t fpu_xfeatures = PAL_XFEATURE_MASK_FPSSE;
unsigned long fpu_xstate_size = 512 + 64;