- Add x86_64 support to vm_x86.c

- Fix warning on mingw64
This commit is contained in:
Thilo Schulz 2011-06-01 15:17:18 +00:00
parent 3e229af710
commit c174143dc2
10 changed files with 349 additions and 94 deletions

View file

@ -272,7 +272,7 @@ void emit(const char* fmt, ...)
#define PREPARE_JMP(reg) \
CHECK_INSTR_REG(reg); \
emit("movq $%"PRIu64", %%rsi", (intptr_t)vm->instructionPointers); \
emit("movl (%%rsi, %%rax, 4), %%eax"); \
emit("movl (%%rsi, %%rax, 8), %%eax"); \
emit("addq %%r10, %%rax")
#define CHECK_INSTR(nr) \