- Fix opStack size for vm_x86.c

- Change opStack alignment to 16 for vm_x86_64.c
This commit is contained in:
Thilo Schulz 2011-06-27 20:22:32 +00:00
parent 774ed53948
commit 2f502aceb2
2 changed files with 3 additions and 3 deletions

View file

@ -1714,7 +1714,7 @@ This function is called directly by the generated code
int VM_CallCompiled(vm_t *vm, int *args)
{
byte stack[OPSTACK_SIZE * 4 + 15];
byte stack[OPSTACK_SIZE + 15];
void *entryPoint;
int programCounter;
int programStack, stackOnEntry;

View file

@ -1016,7 +1016,7 @@ static char* memData;
int VM_CallCompiled(vm_t *vm, int *args)
{
int stack[OPSTACK_SIZE + 3];
int stack[OPSTACK_SIZE + 15];
int programCounter;
int programStack;
int stackOnEntry;
@ -1063,7 +1063,7 @@ int VM_CallCompiled(vm_t *vm, int *args)
// off we go into generated code...
entryPoint = getentrypoint(vm);
opStack = PADP(stack, 4);
opStack = PADP(stack, 16);
*opStack = 0xDEADBEEF;
opStackRet = 0;