diff options
author | Nathan Binkert <nate@binkert.org> | 2009-02-23 12:22:19 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-02-23 12:22:19 -0800 |
commit | f3090e5b704a2b7a02a736ec8601cd961fe3a865 (patch) | |
tree | ce984800907b21e7da5e046c1a2a3e50e1ad01c5 /src/base/stats/mysql.cc | |
parent | aaf98aaa326e79710af0fdcb2425ef2f6a5e82f1 (diff) | |
download | gem5-f3090e5b704a2b7a02a736ec8601cd961fe3a865.tar.xz |
stats: reorganize how parameters are stored and accessed.
Diffstat (limited to 'src/base/stats/mysql.cc')
-rw-r--r-- | src/base/stats/mysql.cc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/base/stats/mysql.cc b/src/base/stats/mysql.cc index 42464993d..72f31240d 100644 --- a/src/base/stats/mysql.cc +++ b/src/base/stats/mysql.cc @@ -584,10 +584,11 @@ MySql::configure(const DistInfoBase &info) return; if (!info.data.fancy) { - stat.size = info.data.size; - stat.min = info.data.min; - stat.max = info.data.max; - stat.bktsize = info.data.bucket_size; + const Params *params = safe_cast<const Params *>(info.storageParams); + stat.size = params->buckets; + stat.min = params->min; + stat.max = params->max; + stat.bktsize = params->bucket_size; } insert(info.id, stat.setup(run)); } @@ -599,10 +600,11 @@ MySql::configure(const VectorDistInfoBase &info) return; if (!info.data[0].fancy) { - stat.size = info.data[0].size; - stat.min = info.data[0].min; - stat.max = info.data[0].max; - stat.bktsize = info.data[0].bucket_size; + const Params *params = safe_cast<const Params *>(info.storageParams); + stat.size = params->buckets; + stat.min = params->min; + stat.max = params->max; + stat.bktsize = params->bucket_size; } uint16_t statid = stat.setup(run); |