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: