summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/pipeline_stage.cc
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/pipeline_stage.cc
parentffa9ecb1fa71f1fe89a65975b2c558e312bbfbc8 (diff)
downloadgem5-0b29c2d057d2d6f4f8b9b7853da91bcb283e805c.tar.xz
inorder: ctxt switch stats
- m5 line enforcement on use_def.cc,hh
Diffstat (limited to 'src/cpu/inorder/pipeline_stage.cc')
-rw-r--r--src/cpu/inorder/pipeline_stage.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/inorder/pipeline_stage.cc b/src/cpu/inorder/pipeline_stage.cc
index e601edfcc..550952947 100644
--- a/src/cpu/inorder/pipeline_stage.cc
+++ b/src/cpu/inorder/pipeline_stage.cc
@@ -570,6 +570,9 @@ PipelineStage::activateThread(ThreadID tid)
// Clear switchout buffer
switchedOutBuffer[tid] = NULL;
switchedOutValid[tid] = false;
+
+ // Update any CPU stats based off context switches
+ cpu->updateContextSwitchStats();
}
}