diff options
author | bd <bdunahu@operationnull.com> | 2025-04-18 19:03:35 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-18 19:03:35 -0400 |
commit | 80063914f09975f24451ce1acb9875cea0d2d384 (patch) | |
tree | 10973bf14631925f9432eaf3bf137de3b2339102 /gui/worker.cc | |
parent | 2f239d57373ed8fba5d94ed3b5a85ff33acf3734 (diff) |
Remove run_steps button
Diffstat (limited to 'gui/worker.cc')
-rw-r--r-- | gui/worker.cc | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/gui/worker.cc b/gui/worker.cc index 2612eb1..4465268 100644 --- a/gui/worker.cc +++ b/gui/worker.cc @@ -8,7 +8,7 @@ void Worker::configure(std::vector<int> ways, std::vector<int> size, bool is_pip setSize(size); qDebug() << "is cache enabled:" << is_cache_enabled; qDebug() << "is pipelined:" << is_pipelined; - this->cache_enabled = is_cache_enabled; + this->cache_enabled = is_cache_enabled; if (!is_cache_enabled || ways.size() == 0) { this->ct = new Controller(wb_stage, this->d, is_pipelined); } else { @@ -46,7 +46,7 @@ std::vector<int> Worker::getSize() { void Worker::doWork() { qDebug() << "Initializing..."; - + this->if_stage = new IF(nullptr); this->id_stage = new ID(if_stage); this->ex_stage = new EX(id_stage); @@ -90,24 +90,6 @@ void Worker::refreshRegisters() emit register_storage(this->ct->get_gprs()); } -void Worker::runSteps(int steps) -{ - qDebug() << "Running for steps: " << steps; - this->ct->run_for(steps); - emit dram_storage(this->d->view(0, 255)); - if(this->cache_enabled && getWays().size() > 0) { - unsigned int size = this->c.at(getWays().size()-1)->get_size(); - emit cache_storage(this->c.at(getWays().size()-1)->view(0, 1<<size)); - } - emit register_storage(this->ct->get_gprs()); - emit clock_cycles(this->ct->get_clock_cycle(), this->ct->get_pc()); - emit if_info(this->if_stage->stage_info()); - emit id_info(this->id_stage->stage_info()); - emit ex_info(this->ex_stage->stage_info()); - emit mm_info(this->mm_stage->stage_info()); - emit wb_info(this->wb_stage->stage_info()); -} - void Worker::runStep() { qDebug() << "Running for 1 step "; |