#endif
#include "cpu/activity.hh"
-#include "cpu/checker/cpu.hh"
#include "cpu/simple_thread.hh"
#include "cpu/thread_context.hh"
#include "cpu/o3/alpha_dyn_inst.hh"
#include "sim/root.hh"
#include "sim/stat_control.hh"
+#if USE_CHECKER
+#include "cpu/checker/cpu.hh"
+#endif
+
using namespace std;
using namespace TheISA;
checker = NULL;
-#if USE_CHECKER
if (params->checker) {
+#if USE_CHECKER
BaseCPU *temp_checker = params->checker;
checker = dynamic_cast<Checker<DynInstPtr> *>(temp_checker);
checker->setMemory(mem);
#if FULL_SYSTEM
checker->setSystem(params->system);
#endif
+#else
+ panic("Checker enabled but not compiled in!");
+#endif // USE_CHECKER
}
-#endif
#if !FULL_SYSTEM
thread.resize(number_of_threads);
removeList.pop();
}
+#if USE_CHECKER
if (checker)
checker->switchOut(sampler);
+#endif
if (tickEvent.scheduled())
tickEvent.squash();