浏览代码

UserspaceEmulator: Support MOV_RM32_reg32 with memory destination

Andreas Kling 5 年之前
父节点
当前提交
743d4ccb8f
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      DevTools/UserspaceEmulator/SoftCPU.cpp

+ 1 - 2
DevTools/UserspaceEmulator/SoftCPU.cpp

@@ -521,8 +521,7 @@ void SoftCPU::MOV_RM32_imm32(const X86::Instruction& insn)
 
 void SoftCPU::MOV_RM32_reg32(const X86::Instruction& insn)
 {
-    ASSERT(insn.modrm().is_register());
-    gpr32(insn.modrm().reg32()) = gpr32(insn.reg32());
+    insn.modrm().write32(*this, insn, gpr32(insn.reg32()));
 }
 
 void SoftCPU::MOV_RM8_imm8(const X86::Instruction& insn)