summaryrefslogtreecommitdiff
path: root/src/sim/pseudo_inst.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-04-21 15:40:26 -0700
committerNathan Binkert <nate@binkert.org>2009-04-21 15:40:26 -0700
commitfcc142463d38fc1d752b2e45c24a9e1040ccfc9e (patch)
treed793eb4e72298b739b60aef936f1ae29382c30c0 /src/sim/pseudo_inst.cc
parent43c7698f495add972870002430dccc83c3716232 (diff)
downloadgem5-fcc142463d38fc1d752b2e45c24a9e1040ccfc9e.tar.xz
pseudo: only include kernel stats if FULL_SYSTEM.
Diffstat (limited to 'src/sim/pseudo_inst.cc')
-rw-r--r--src/sim/pseudo_inst.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sim/pseudo_inst.cc b/src/sim/pseudo_inst.cc
index 3c2a27f54..b5582578a 100644
--- a/src/sim/pseudo_inst.cc
+++ b/src/sim/pseudo_inst.cc
@@ -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