diff options
Diffstat (limited to 'src/cpu/inorder/cpu.hh')
-rw-r--r-- | src/cpu/inorder/cpu.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cpu/inorder/cpu.hh b/src/cpu/inorder/cpu.hh index 0545f4bf8..744dd5cf9 100644 --- a/src/cpu/inorder/cpu.hh +++ b/src/cpu/inorder/cpu.hh @@ -589,6 +589,17 @@ class InOrderCPU : public BaseCPU return thread[tid]->getTC(); } + /** Count the Total Instructions Committed in the CPU. */ + virtual Counter totalInstructions() const + { + Counter total(0); + + for (int i=0; i < thread.size(); i++) + total += thread[i]->numInst; + + return total; + } + /** The global sequence number counter. */ InstSeqNum globalSeqNum[ThePipeline::MaxThreads]; |