浏览代码

UserspaceEmulator: Fix broken MOV_RM32_imm32

Oops, this was incorrectly moving into a GPR rather than the R/M.
Andreas Kling 5 年之前
父节点
当前提交
ab9c7ef63b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      DevTools/UserspaceEmulator/SoftCPU.cpp

+ 1 - 1
DevTools/UserspaceEmulator/SoftCPU.cpp

@@ -797,7 +797,7 @@ void SoftCPU::MOV_RM16_seg(const X86::Instruction&) { TODO(); }
 
 void SoftCPU::MOV_RM32_imm32(const X86::Instruction& insn)
 {
-    gpr32(insn.reg32()) = insn.imm32();
+    insn.modrm().write32(*this, insn, insn.imm32());
 }
 
 void SoftCPU::MOV_RM32_reg32(const X86::Instruction& insn)