mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 13:51:28 +00:00
fixup! [LibOS] initialize fp state values and add helper functions
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user