Brought back check_prefs_changed_comp()

This commit is contained in:
Dimitris Panokostas 2018-02-16 17:27:47 +01:00
parent 034f310eaf
commit ffffc374bf

View file

@ -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 * * Functions to emit data into memory, and other general support *
********************************************************************/ ********************************************************************/