mirror of
https://github.com/UberGames/ioef.git
synced 2025-01-31 13:00:46 +00:00
- Fix opStack size for vm_x86.c
- Change opStack alignment to 16 for vm_x86_64.c
This commit is contained in:
parent
774ed53948
commit
2f502aceb2
2 changed files with 3 additions and 3 deletions
|
@ -1714,7 +1714,7 @@ This function is called directly by the generated code
|
||||||
|
|
||||||
int VM_CallCompiled(vm_t *vm, int *args)
|
int VM_CallCompiled(vm_t *vm, int *args)
|
||||||
{
|
{
|
||||||
byte stack[OPSTACK_SIZE * 4 + 15];
|
byte stack[OPSTACK_SIZE + 15];
|
||||||
void *entryPoint;
|
void *entryPoint;
|
||||||
int programCounter;
|
int programCounter;
|
||||||
int programStack, stackOnEntry;
|
int programStack, stackOnEntry;
|
||||||
|
|
|
@ -1016,7 +1016,7 @@ static char* memData;
|
||||||
|
|
||||||
int VM_CallCompiled(vm_t *vm, int *args)
|
int VM_CallCompiled(vm_t *vm, int *args)
|
||||||
{
|
{
|
||||||
int stack[OPSTACK_SIZE + 3];
|
int stack[OPSTACK_SIZE + 15];
|
||||||
int programCounter;
|
int programCounter;
|
||||||
int programStack;
|
int programStack;
|
||||||
int stackOnEntry;
|
int stackOnEntry;
|
||||||
|
@ -1063,7 +1063,7 @@ int VM_CallCompiled(vm_t *vm, int *args)
|
||||||
|
|
||||||
// off we go into generated code...
|
// off we go into generated code...
|
||||||
entryPoint = getentrypoint(vm);
|
entryPoint = getentrypoint(vm);
|
||||||
opStack = PADP(stack, 4);
|
opStack = PADP(stack, 16);
|
||||||
|
|
||||||
*opStack = 0xDEADBEEF;
|
*opStack = 0xDEADBEEF;
|
||||||
opStackRet = 0;
|
opStackRet = 0;
|
||||||
|
|
Loading…
Reference in a new issue