summaryrefslogtreecommitdiff
path: root/src/base/stats
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-07-21 15:53:53 -0700
committerNathan Binkert <nate@binkert.org>2010-07-21 15:53:53 -0700
commit2a1309f2134986edcbff846aff5951ec1e8df6e1 (patch)
treec5168a212471551d5b08817bbafc2a24d8fa1666 /src/base/stats
parent76c92c3e308c13b031dfa739d51f9f1f6917bd4b (diff)
downloadgem5-2a1309f2134986edcbff846aff5951ec1e8df6e1.tar.xz
stats: cleanup a few small problems in stats
Diffstat (limited to 'src/base/stats')
-rw-r--r--src/base/stats/text.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc
index f3c4d1c58..87bb05323 100644
--- a/src/base/stats/text.cc
+++ b/src/base/stats/text.cc
@@ -348,10 +348,18 @@ DistPrint::init(const Text *text, const Info &info, const DistParams *params)
descriptions = text->descriptions;
type = params->type;
- min = params->min;
- max = params->max;
- bucket_size = params->bucket_size;
- size = params->buckets;
+ switch (type) {
+ case Dist:
+ min = params->min;
+ max = params->max;
+ bucket_size = params->bucket_size;
+ size = params->buckets;
+ break;
+ case Deviation:
+ break;
+ default:
+ panic("unknown distribution type");
+ }
}
void