stats: make simTicks and simFreq accessible from stats.hh
authorNathan Binkert <nate@binkert.org>
Sun, 18 Apr 2010 20:23:25 +0000 (13:23 -0700)
committerNathan Binkert <nate@binkert.org>
Sun, 18 Apr 2010 20:23:25 +0000 (13:23 -0700)
src/sim/stat_control.cc
src/sim/stats.hh

index e8c2d581420ede8bf691db981411cf073615a950..373a3f2973f2eb7df47620f5ebdb2e466aee846d 100644 (file)
@@ -45,6 +45,8 @@
 using namespace std;
 
 Stats::Formula simSeconds;
+Stats::Value simTicks;
+Stats::Value simFreq;
 
 namespace Stats {
 
@@ -83,9 +85,7 @@ struct Global
     Stats::Value hostMemory;
     Stats::Value hostSeconds;
 
-    Stats::Value simTicks;
     Stats::Value simInsts;
-    Stats::Value simFreq;
 
     Global();
 };
index 481c36cf6f7c06b8f78384c87e7d52c4a4bc8235..eae466644cf1d3553ada05070936058422df403a 100644 (file)
@@ -34,5 +34,7 @@
 #include "base/statistics.hh"
 
 extern Stats::Formula simSeconds;
+extern Stats::Value simTicks;
+extern Stats::Value simFreq;
 
 #endif // __SIM_SIM_STATS_HH__