summaryrefslogtreecommitdiff
path: root/gui/worker.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-18 19:31:17 -0400
committerbd <bdunahu@operationnull.com>2025-04-18 19:31:17 -0400
commit5e96476ae29a104df1c4526ba1037dc830207d56 (patch)
treed265a50df61bda586a819dc0305e5dccb2611f98 /gui/worker.cc
parent80063914f09975f24451ce1acb9875cea0d2d384 (diff)
Use a slider for step amount
Diffstat (limited to 'gui/worker.cc')
-rw-r--r--gui/worker.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/worker.cc b/gui/worker.cc
index 4465268..3c2c952 100644
--- a/gui/worker.cc
+++ b/gui/worker.cc
@@ -90,10 +90,10 @@ void Worker::refreshRegisters()
emit register_storage(this->ct->get_gprs());
}
-void Worker::runStep()
+void Worker::runSteps(int steps)
{
- qDebug() << "Running for 1 step ";
- this->ct->advance(WAIT);
+ 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();