mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:57:35 +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
1 changed files with 12 additions and 3 deletions
|
@ -172,13 +172,22 @@ int Emulator::exec()
|
||||||
{
|
{
|
||||||
ELFSymbolProvider symbol_provider(*m_elf);
|
ELFSymbolProvider symbol_provider(*m_elf);
|
||||||
|
|
||||||
|
bool trace = false;
|
||||||
|
|
||||||
while (!m_shutdown) {
|
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);
|
auto insn = X86::Instruction::from_stream(m_cpu, true, true);
|
||||||
out() << (const void*)base_eip << " \033[33;1m" << insn.to_string(base_eip, &symbol_provider) << "\033[0m";
|
|
||||||
|
if (trace)
|
||||||
|
out() << (const void*)base_eip << " \033[33;1m" << insn.to_string(base_eip, &symbol_provider) << "\033[0m";
|
||||||
|
|
||||||
(m_cpu.*insn.handler())(insn);
|
(m_cpu.*insn.handler())(insn);
|
||||||
m_cpu.dump();
|
|
||||||
|
if (trace)
|
||||||
|
m_cpu.dump();
|
||||||
}
|
}
|
||||||
return m_exit_status;
|
return m_exit_status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue