From 2950bb98ea2e414c0067787fd77a9192a479db97 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 17 May 2010 08:59:53 +0000 Subject: [PATCH] fix OP_BLOCK_COPY alignment for win64 (patch by Marcus Meissner) --- code/qcommon/vm_x86_64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/qcommon/vm_x86_64.c b/code/qcommon/vm_x86_64.c index bc79bfa4..70ee7a29 100644 --- a/code/qcommon/vm_x86_64.c +++ b/code/qcommon/vm_x86_64.c @@ -757,12 +757,14 @@ emit_do_syscall: emit("push %%r8"); emit("push %%r9"); emit("push %%r10"); + emit("push %%r10"); emit("movl 4(%%rsi), %%edi"); // 1st argument dest emit("movl 8(%%rsi), %%esi"); // 2nd argument src emit("movl $%d, %%edx", iarg); // 3rd argument count emit("movq $%"PRIu64", %%rax", (uint64_t)block_copy_vm); emit("callq *%%rax"); emit("pop %%r10"); + emit("pop %%r10"); emit("pop %%r9"); emit("pop %%r8"); emit("pop %%rdi");