mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-08 17:09:41 +00:00
UserspaceEmulator: Disable per-instruction trace dumps for now
With tracing turned on, it's just too slow when doing big operations like initializing malloc freelists.
This commit is contained in:
parent
079021a607
commit
56d3a949e6
|
@ -172,12 +172,21 @@ int Emulator::exec()
|
|||
{
|
||||
ELFSymbolProvider symbol_provider(*m_elf);
|
||||
|
||||
bool trace = false;
|
||||
|
||||
while (!m_shutdown) {
|
||||
auto base_eip = m_cpu.eip();
|
||||
u32 base_eip = 0;
|
||||
if (trace)
|
||||
base_eip = m_cpu.eip();
|
||||
|
||||
auto insn = X86::Instruction::from_stream(m_cpu, true, true);
|
||||
|
||||
if (trace)
|
||||
out() << (const void*)base_eip << " \033[33;1m" << insn.to_string(base_eip, &symbol_provider) << "\033[0m";
|
||||
|
||||
(m_cpu.*insn.handler())(insn);
|
||||
|
||||
if (trace)
|
||||
m_cpu.dump();
|
||||
}
|
||||
return m_exit_status;
|
||||
|
|
Loading…
Reference in a new issue