- fixed setup of JIT functions that require extra frame space

https://forum.zdoom.org/viewtopic.php?t=68816
This commit is contained in:
alexey.lysiuk 2020-06-07 11:34:58 +03:00 committed by drfrag
parent d28ba37af2
commit 55bbc4a86b

View file

@ -276,7 +276,7 @@ void JitCompiler::SetupFrame()
offsetD = offsetA + (int)(sfunc->NumRegA * sizeof(void*)); offsetD = offsetA + (int)(sfunc->NumRegA * sizeof(void*));
offsetExtra = (offsetD + (int)(sfunc->NumRegD * sizeof(int32_t)) + 15) & ~15; offsetExtra = (offsetD + (int)(sfunc->NumRegD * sizeof(int32_t)) + 15) & ~15;
if (sfunc->SpecialInits.Size() == 0 && sfunc->NumRegS == 0) if (sfunc->SpecialInits.Size() == 0 && sfunc->NumRegS == 0 && sfunc->ExtraSpace == 0)
{ {
SetupSimpleFrame(); SetupSimpleFrame();
} }