From 8669bbd4a8de138fe61e82432d3c831e88417fb8 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sun, 24 Sep 2006 18:04:18 +0000 Subject: [PATCH] compilation errors --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4099 --- sourcepawn/vm/jit/x86/jit_x86.cpp | 1 + sourcepawn/vm/jit/x86/jit_x86.h | 4 ++-- sourcepawn/vm/jit/x86/ungen_opcodes.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sourcepawn/vm/jit/x86/jit_x86.cpp b/sourcepawn/vm/jit/x86/jit_x86.cpp index 1835acea..991ec658 100644 --- a/sourcepawn/vm/jit/x86/jit_x86.cpp +++ b/sourcepawn/vm/jit/x86/jit_x86.cpp @@ -1155,6 +1155,7 @@ inline void WriteOp_Jeq(JitWriter *jit) IA32_Cmp_Rm_Reg(jit, AMX_REG_PRI, AMX_REG_ALT, MOD_REG); IA32_Jump_Cond_Imm32_Abs(jit, CC_E, RelocLookup(jit, target, false)); } + inline void WriteOp_Jneq(JitWriter *jit) { //cmp eax, edx diff --git a/sourcepawn/vm/jit/x86/jit_x86.h b/sourcepawn/vm/jit/x86/jit_x86.h index a3a08322..9004dd6b 100644 --- a/sourcepawn/vm/jit/x86/jit_x86.h +++ b/sourcepawn/vm/jit/x86/jit_x86.h @@ -39,9 +39,9 @@ class JITX86 : public IVirtualMachine public: JITX86(); public: - const char *GetVMName() =0; + const char *GetVMName(); ICompilation *StartCompilation(sp_plugin_t *plugin); - bool SetCompilationOption(ICompilation *co, const char *key, const char *val) ; + bool SetCompilationOption(ICompilation *co, const char *key, const char *val); sp_context_t *CompileToContext(ICompilation *co, int *err); void AbortCompilation(ICompilation *co); void FreeContext(sp_context_t *ctx); diff --git a/sourcepawn/vm/jit/x86/ungen_opcodes.h b/sourcepawn/vm/jit/x86/ungen_opcodes.h index 3072db28..2a9dc9d3 100644 --- a/sourcepawn/vm/jit/x86/ungen_opcodes.h +++ b/sourcepawn/vm/jit/x86/ungen_opcodes.h @@ -161,7 +161,7 @@ inline void WriteOp_Lctrl(JitWriter *jit) //mov ecx, [esi+ctx] //mov eax, [ecx+] IA32_Mov_Reg_Rm_Disp8(jit, AMX_REG_TMP, AMX_REG_INFO, AMX_INFO_CONTEXT); - IA32_Mov_Reg_Rm_Disp8(jit, AMX_REG_PRI, AMX_REG_TMP, offsetof(sp_context_t, base)); + IA32_Mov_Reg_Rm_Disp8(jit, AMX_REG_PRI, AMX_REG_TMP, offsetof(sp_context_t, codebase)); break; } case 1: