diff options
author | Nathan Binkert <nate@binkert.org> | 2010-07-21 15:53:53 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2010-07-21 15:53:53 -0700 |
commit | 2a1309f2134986edcbff846aff5951ec1e8df6e1 (patch) | |
tree | c5168a212471551d5b08817bbafc2a24d8fa1666 /src/base/stats | |
parent | 76c92c3e308c13b031dfa739d51f9f1f6917bd4b (diff) | |
download | gem5-2a1309f2134986edcbff846aff5951ec1e8df6e1.tar.xz |
stats: cleanup a few small problems in stats
Diffstat (limited to 'src/base/stats')
-rw-r--r-- | src/base/stats/text.cc | 16 |
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 |