Workaround for yet another AsmJit bug. Sigh.

This commit is contained in:
Ben Vanik 2013-10-19 12:50:42 -07:00
parent 37065255a2
commit 007f7e371d
1 changed files with 3 additions and 0 deletions

View File

@ -1156,9 +1156,12 @@ void X64Emitter::write_gpu_register(uint32_t r, GpVar& v) {
X86Compiler& c = compiler_;
GpVar this_imm(c.newGpVar());
c.alloc(this_imm, rcx);
c.mov(this_imm, imm((uint64_t)gpu_this_));
GpVar reg_imm(c.newGpVar());
c.alloc(reg_imm, rdx);
c.mov(reg_imm, imm(r & 0xFFFF));
c.alloc(v, r8);
X86CompilerFuncCall* call = c.call(gpu_write_);
call->setPrototype(kX86FuncConvDefault,