1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

UserspaceEmulator: Don't exit the emulation loop on "RET" :^)

This commit is contained in:
Andreas Kling 2020-07-11 17:13:15 +02:00
parent 4d366b8b24
commit dc66d70369

View file

@ -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();
}