aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/memorymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/memorymodel.cpp')
-rw-r--r--qtmips_gui/memorymodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qtmips_gui/memorymodel.cpp b/qtmips_gui/memorymodel.cpp
index 09157bf..908f019 100644
--- a/qtmips_gui/memorymodel.cpp
+++ b/qtmips_gui/memorymodel.cpp
@@ -167,6 +167,11 @@ void MemoryModel::set_cell_size(int index) {
}
void MemoryModel::update_all() {
+ if (machine != nullptr && machine->memory() != nullptr) {
+ memory_change_counter = machine->memory()->get_change_counter();
+ if (machine->cache_data() != nullptr)
+ cache_data_change_counter = machine->cache_data()->get_change_counter();
+ }
emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1));
}