diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-04-28 21:49:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-28 21:49:25 -0400 |
commit | 32a1762b3b9091f6e2d553601f3e3a3a5d87b889 (patch) | |
tree | cb12daab120a8298d5e78219602fded822bdd671 /gui/worker.cc | |
parent | 9e7debd7bff14893f2722c37f42d9c6b70fbdcbf (diff) | |
parent | 930ec733e988c4996918065b4656f0508c6e2df6 (diff) |
Merge pull request #76 from bdunahu/bdunahu
Fix bug with pipeline blockage, swap DRAM delay to 100
Diffstat (limited to 'gui/worker.cc')
-rw-r--r-- | gui/worker.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/worker.cc b/gui/worker.cc index a48888c..755c797 100644 --- a/gui/worker.cc +++ b/gui/worker.cc @@ -18,6 +18,7 @@ #include "worker.h" #include "storage.h" #include "util.h" +#include <cmath> Worker::Worker(QObject *parent) : QObject(parent) {} @@ -49,7 +50,7 @@ void Worker::configure( for (i = ways.size(); i > 0; --i) { s = static_cast<Storage *>(new Cache( s, cache_size_mapper(ways.size() - 1, i - 1), ways.at(i - 1), - CACHE_DELAY + i)); + static_cast<int>(pow(CACHE_DELAY_SCALE, (i - 1))))); this->s.push_front(s); } @@ -68,7 +69,7 @@ void Worker::configure( this->update(); } -void Worker::runSteps(int steps) +void Worker::runSteps(long steps) { this->ct->run_for(steps); this->update(); |