diff --git a/src/jit/compemu_support.cpp b/src/jit/compemu_support.cpp index 34975e9e..3a0950eb 100644 --- a/src/jit/compemu_support.cpp +++ b/src/jit/compemu_support.cpp @@ -600,6 +600,30 @@ STATIC_INLINE void alloc_blockinfos(void) } } +bool check_prefs_changed_comp(bool checkonly) +{ + bool changed = 0; + + if (currprefs.compfpu != changed_prefs.compfpu || + currprefs.fpu_strict != changed_prefs.fpu_strict || + currprefs.cachesize != changed_prefs.cachesize) + changed = 1; + + if (checkonly) + return changed; + + currprefs.compfpu = changed_prefs.compfpu; + currprefs.fpu_strict = changed_prefs.fpu_strict; + + if (currprefs.cachesize != changed_prefs.cachesize) { + currprefs.cachesize = changed_prefs.cachesize; + alloc_cache(); + changed = 1; + } + + return changed; +} + /******************************************************************** * Functions to emit data into memory, and other general support * ********************************************************************/