From 5293a49d7f42759a12ac39ca9d045671cf807680 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 16 May 2013 00:10:26 -0400 Subject: [PATCH] add back logging --- bin/loader.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/loader.cpp b/bin/loader.cpp index 4836dcc..6f066e3 100644 --- a/bin/loader.cpp +++ b/bin/loader.cpp @@ -747,6 +747,17 @@ int main(int argc, char **argv) if (cpuGetStop()) break; // will this also be set by an interrupt? + + + #ifndef CPU_INSTRUCTION_LOGGING + if (Flags.traceCPU || Flags.traceMacsbug) + { + InstructionLogger(); + } + #endif + + + cycles += cpuExecuteInstruction(); }