summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-02-23 12:22:18 -0800
committerNathan Binkert <nate@binkert.org>2009-02-23 12:22:18 -0800
commitaaf98aaa326e79710af0fdcb2425ef2f6a5e82f1 (patch)
tree597177ed667f030073e21ebf5258c9aa72121a92 /src/base
parent80d5f34da6788d63e2be6458a5d2a548b459d0d0 (diff)
downloadgem5-aaf98aaa326e79710af0fdcb2425ef2f6a5e82f1.tar.xz
stats: move the limits stuff into the types.hh file
Diffstat (limited to 'src/base')
-rw-r--r--src/base/statistics.hh3
-rw-r--r--src/base/stats/types.hh3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index 5d894e8e1..d8145ddc4 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -55,7 +55,6 @@
#include <cmath>
#include <functional>
#include <iosfwd>
-#include <limits>
#include <list>
#include <string>
#include <vector>
@@ -78,9 +77,7 @@ extern Tick curTick;
/* A namespace for all of the Statistics */
namespace Stats {
-typedef std::numeric_limits<Counter> CounterLimits;
-/* Contains the statistic implementation details */
//////////////////////////////////////////////////////////////////////
//
// Statistics Framework Base classes
diff --git a/src/base/stats/types.hh b/src/base/stats/types.hh
index 6f56aec9a..e561f94ad 100644
--- a/src/base/stats/types.hh
+++ b/src/base/stats/types.hh
@@ -31,6 +31,7 @@
#ifndef __BASE_STATS_TYPES_HH__
#define __BASE_STATS_TYPES_HH__
+#include <limits>
#include <vector>
#include "sim/host.hh"
@@ -42,6 +43,8 @@ typedef double Counter;
/** vector of counters. */
typedef std::vector<Counter> VCounter;
+typedef std::numeric_limits<Counter> CounterLimits;
+
/** All results are doubles. */
typedef double Result;
/** vector of results. */