summaryrefslogtreecommitdiff
path: root/gui/worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gui/worker.cc')
-rw-r--r--gui/worker.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/worker.cc b/gui/worker.cc
index f490fb4..0ba364b 100644
--- a/gui/worker.cc
+++ b/gui/worker.cc
@@ -81,10 +81,8 @@ void Worker::update()
this->ct_mutex.lock();
emit register_storage(this->ct->get_gprs());
- emit storage(this->data_to_QT(this->s.at(0)->get_data()), 1);
-
- for (i = 1; i < s.size(); ++i)
- emit storage(this->data_to_QT(this->s.at(i - 1)->get_data()), i + 1);
+ for (i = 0; i < s.size(); ++i)
+ emit storage(this->data_to_QT(this->s.at(i)->get_data()), i + 1);
emit clock_cycles(this->ct->get_clock_cycle(), this->ct->get_pc());
emit if_info(this->if_stage->get_instr());