Brought back check_prefs_changed_comp()
This commit is contained in:
parent
034f310eaf
commit
ffffc374bf
1 changed files with 24 additions and 0 deletions
|
@ -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 *
|
||||||
********************************************************************/
|
********************************************************************/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue