summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-11 22:33:47 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-11 23:57:14 +0200
commitab9c7ef63b72048448da3e554184eddcb456c5f7 (patch)
treed05a94cf7e3cbd4415fafa9064641939bf17844e /DevTools
parent6c7ae794ce9b796e37c3a46d65c73847c6f853c0 (diff)
downloadserenity-ab9c7ef63b72048448da3e554184eddcb456c5f7.zip
UserspaceEmulator: Fix broken MOV_RM32_imm32
Oops, this was incorrectly moving into a GPR rather than the R/M.
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/UserspaceEmulator/SoftCPU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/DevTools/UserspaceEmulator/SoftCPU.cpp b/DevTools/UserspaceEmulator/SoftCPU.cpp
index 58b98ddfeb..fa0f10822f 100644
--- a/DevTools/UserspaceEmulator/SoftCPU.cpp
+++ b/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)