mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11: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)
|
||||
{
|
||||
byte stack[OPSTACK_SIZE * 4 + 15];
|
||||
byte stack[OPSTACK_SIZE + 15];
|
||||
void *entryPoint;
|
||||
int programCounter;
|
||||
int programStack, stackOnEntry;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue