diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-09-24 17:39:56 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-09-24 17:39:56 -0700 |
commit | 418ddf43e645133b3693ab8bf2e56656efcf1ebf (patch) | |
tree | c88d688929d2f957e174248db793565ce8b3fc6b /src/arch/x86/kernel_stats.hh | |
parent | dd277e0d8f1e0303a74a29bd729864a4766e6f73 (diff) | |
download | gem5-418ddf43e645133b3693ab8bf2e56656efcf1ebf.tar.xz |
X86: Get X86_FS to compile.
--HG--
extra : convert_revision : fb973bcf13648876d5691231845dd47a2be50f01
Diffstat (limited to 'src/arch/x86/kernel_stats.hh')
-rw-r--r-- | src/arch/x86/kernel_stats.hh | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/arch/x86/kernel_stats.hh b/src/arch/x86/kernel_stats.hh index 8cd80073e..7679cb305 100644 --- a/src/arch/x86/kernel_stats.hh +++ b/src/arch/x86/kernel_stats.hh @@ -58,10 +58,33 @@ #ifndef __ARCH_X86_KERNELSTATS_HH__ #define __ARCH_X86_KERNELSTATS_HH__ -#error X86 is not yet supported! +#include "kern/kernel_stats.hh" -namespace X86ISA +namespace X86ISA { +namespace Kernel { + +enum cpu_mode { + ring0, + ring1, + ring2, + ring3, + kernel = ring0, + user = ring3, + idle, + //What is this next one for? + cpu_mode_num +}; + +extern const char *modestr[]; + +class Statistics : public ::Kernel::Statistics { + public: + Statistics(System * system) : ::Kernel::Statistics(system) + {} }; +} +} + #endif // __ARCH_X86_KERNELSTATS_HH__ |