diff options
author | bd <bdunahu@operationnull.com> | 2025-04-26 03:39:28 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-26 03:39:28 -0400 |
commit | a78163745b43a0c420ae4ea5792def30a94420eb (patch) | |
tree | 9cc23cfec1a7e524822d604e95e237034b31a95e /gui/worker.cc | |
parent | c98a0c26c4ccb5c4ae0e9f5810be910a7b299037 (diff) |
Partial cache size generation, full cache display
Diffstat (limited to 'gui/worker.cc')
-rw-r--r-- | gui/worker.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gui/worker.cc b/gui/worker.cc index 6419b73..93ccbea 100644 --- a/gui/worker.cc +++ b/gui/worker.cc @@ -17,6 +17,7 @@ #include "worker.h" #include "storage.h" +#include "util.h" Worker::Worker(QObject *parent) : QObject(parent) {} @@ -39,10 +40,6 @@ void Worker::configure( this->s.clear(); this->ct_mutex.lock(); - if (ways.size() != 0) { - // TODO optimal proper sizes - this->size_inc = ((MEM_LINE_SPEC * 0.75) / ways.size()); - } d = new Dram(DRAM_DELAY); s = static_cast<Storage *>(d); @@ -51,7 +48,8 @@ void Worker::configure( for (i = ways.size(); i > 0; --i) { s = static_cast<Storage *>(new Cache( - s, this->size_inc * (i), ways.at(i - 1), CACHE_DELAY + i)); + s, cache_size_mapper(ways.size() - 1, i), ways.at(i - 1), + CACHE_DELAY + i)); this->s.push_front(s); } |