diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-10-31 02:58:22 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-10-31 02:58:22 -0700 |
commit | 8ad2b8c5596b817267fbf7a39e6ce28ffb49789c (patch) | |
tree | e20e9aa7253fb12e2e6b8abf8932e726728004c1 /src/kern/kernel_stats.cc | |
parent | ef097eb69cec0753074d5190e5ff91aabfaef5e5 (diff) | |
download | gem5-8ad2b8c5596b817267fbf7a39e6ce28ffb49789c.tar.xz |
SE/FS: Make the functions available from the TC consistent between SE and FS.
Diffstat (limited to 'src/kern/kernel_stats.cc')
-rw-r--r-- | src/kern/kernel_stats.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kern/kernel_stats.cc b/src/kern/kernel_stats.cc index 09c1a6760..96e219bd4 100644 --- a/src/kern/kernel_stats.cc +++ b/src/kern/kernel_stats.cc @@ -33,8 +33,10 @@ #include "base/trace.hh" #include "cpu/thread_context.hh" -#include "kern/tru64/tru64_syscalls.hh" #include "kern/kernel_stats.hh" +#if THE_ISA == ALPHA_ISA +#include "kern/tru64/tru64_syscalls.hh" +#endif #include "sim/system.hh" using namespace std; @@ -90,13 +92,14 @@ Statistics::regStats(const string &_name) ; _iplUsed = _iplGood / _iplCount; - +#if THE_ISA == ALPHA_ISA _syscall .init(SystemCalls<Tru64>::Number) .name(name() + ".syscall") .desc("number of syscalls executed") .flags(total | pdf | nozero | nonan) ; +#endif //@todo This needs to get the names of syscalls from an appropriate place. #if 0 |