pseudo: only include kernel stats if FULL_SYSTEM.
authorNathan Binkert <nate@binkert.org>
Tue, 21 Apr 2009 22:40:26 +0000 (15:40 -0700)
committerNathan Binkert <nate@binkert.org>
Tue, 21 Apr 2009 22:40:26 +0000 (15:40 -0700)
src/sim/pseudo_inst.cc

index 3c2a27f5454034ea6171ff26f7e1fe225a536c2a..b5582578a1df34485275f48e472dbedf96941fa5 100644 (file)
@@ -35,7 +35,8 @@
 #include <fstream>
 #include <string>
 
-#include "arch/kernel_stats.hh"
+#include "config/full_system.hh"
+
 #include "arch/vtophys.hh"
 #include "base/debug.hh"
 #include "cpu/base.hh"
@@ -49,7 +50,9 @@
 #include "sim/stat_control.hh"
 #include "sim/stats.hh"
 #include "sim/system.hh"
+
 #if FULL_SYSTEM
+#include "arch/kernel_stats.hh"
 #include "sim/vptr.hh"
 #endif