From b4c10bd6800b5ab5adee3035f1908d7a49a14ca9 Mon Sep 17 00:00:00 2001 From: Joel Hestness Date: Sun, 6 Feb 2011 22:14:17 -0800 Subject: mcpat: Adds McPAT performance counters Updated patches from Rick Strong's set that modify performance counters for McPAT --- src/cpu/o3/rob.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cpu/o3/rob.hh') diff --git a/src/cpu/o3/rob.hh b/src/cpu/o3/rob.hh index bdea07d1a..510c8c5dc 100644 --- a/src/cpu/o3/rob.hh +++ b/src/cpu/o3/rob.hh @@ -253,6 +253,9 @@ class ROB */ int countInsts(ThreadID tid); + /** Registers statistics. */ + void regStats(); + private: /** Pointer to the CPU. */ O3CPU *cpu; @@ -312,6 +315,11 @@ class ROB /** Number of active threads. */ ThreadID numThreads; + + // The number of rob_reads + Stats::Scalar robReads; + // The number of rob_writes + Stats::Scalar robWrites; }; #endif //__CPU_O3_ROB_HH__ -- cgit v1.2.3