Fixed JIT cache size being hardcoded in some places
This commit is contained in:
parent
026a1fde11
commit
aaa1a506e7
2 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@ void fixup_prefs (struct uae_prefs *p, bool userconfig)
|
|||
p->produce_sound = 0;
|
||||
err = 1;
|
||||
}
|
||||
if (p->cachesize < 0 || p->cachesize > 16384) {
|
||||
if (p->cachesize < 0 || p->cachesize > MAX_JIT_CACHE) {
|
||||
error_log(_T("Bad value for cachesize parameter: value must be within 0..16384."));
|
||||
p->cachesize = 0;
|
||||
err = 1;
|
||||
|
|
|
@ -129,7 +129,7 @@ static void parse_compatibility(struct uae_prefs* p, xmlNode* node)
|
|||
clip_no_hires = true;
|
||||
else if (strcmp(reinterpret_cast<const char *>(content), "jit") == 0)
|
||||
{
|
||||
p->cachesize = 8192;
|
||||
p->cachesize = MAX_JIT_CACHE;
|
||||
p->address_space_24 = false;
|
||||
}
|
||||
else if (strcmp(reinterpret_cast<const char *>(content), "flexible-cpu-cycles") == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue