diff options
author | bd <bdunahu@operationnull.com> | 2025-04-26 23:58:06 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-26 23:58:06 -0400 |
commit | b6a4bcd0b9ea23d4c760127e77112aaaa30cef0d (patch) | |
tree | 4f568784fdb9fa8812f8c7650a5224f406b29027 /gui | |
parent | 270d5c95c46385b7f8c3ad5ffd1adb4ac5a43acb (diff) |
Ensure each tab is linked to correct cache object
Diffstat (limited to 'gui')
-rw-r--r-- | gui/worker.cc | 6 |
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()); |