summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-11 17:13:15 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-11 17:13:15 +0200
commitdc66d70369a776e6054e8c69fccdd69bdbac8599 (patch)
tree1c5a07853dff3e3fb5c069fe4f9ab3f2181eb79c
parent4d366b8b24e20317337d1c836614fb60245dbb07 (diff)
downloadserenity-dc66d70369a776e6054e8c69fccdd69bdbac8599.zip
UserspaceEmulator: Don't exit the emulation loop on "RET" :^)
-rw-r--r--DevTools/UserspaceEmulator/Emulator.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp
index 7a70ccbaaa..3e0f26b624 100644
--- a/DevTools/UserspaceEmulator/Emulator.cpp
+++ b/DevTools/UserspaceEmulator/Emulator.cpp
@@ -131,10 +131,6 @@ int Emulator::exec()
auto insn = X86::Instruction::from_stream(m_cpu, true, true);
out() << (const void*)base_eip << " \033[33;1m" << insn.to_string(base_eip) << "\033[0m";
- // FIXME: Remove this hack once it's no longer needed :^)
- if (insn.mnemonic() == "RET")
- break;
-
(m_cpu.*insn.handler())(insn);
m_cpu.dump();
}