summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/cpu.hh
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2010-01-31 18:28:59 -0500
committerKorey Sewell <ksewell@umich.edu>2010-01-31 18:28:59 -0500
commit0b29c2d057d2d6f4f8b9b7853da91bcb283e805c (patch)
treee594abc10fc92baaed872fe7139153bd5a86ffcf /src/cpu/inorder/cpu.hh
parentffa9ecb1fa71f1fe89a65975b2c558e312bbfbc8 (diff)
downloadgem5-0b29c2d057d2d6f4f8b9b7853da91bcb283e805c.tar.xz
inorder: ctxt switch stats
- m5 line enforcement on use_def.cc,hh
Diffstat (limited to 'src/cpu/inorder/cpu.hh')
-rw-r--r--src/cpu/inorder/cpu.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpu/inorder/cpu.hh b/src/cpu/inorder/cpu.hh
index 70013c0f5..6f1f3ee3f 100644
--- a/src/cpu/inorder/cpu.hh
+++ b/src/cpu/inorder/cpu.hh
@@ -707,6 +707,11 @@ class InOrderCPU : public BaseCPU
/** The cycle that the CPU was last running, used for statistics. */
Tick lastRunningCycle;
+ void updateContextSwitchStats();
+ unsigned instsPerSwitch;
+ Stats::Average instsPerCtxtSwitch;
+ Stats::Scalar numCtxtSwitches;
+
/** Update Thread , used for statistic purposes*/
inline void tickThreadStats();