aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/cache.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtmips_machine/cache.cpp b/qtmips_machine/cache.cpp
index ad85c8a..3cc36e2 100644
--- a/qtmips_machine/cache.cpp
+++ b/qtmips_machine/cache.cpp
@@ -177,8 +177,11 @@ void Cache::flush() {
for (unsigned as = cnf.associativity(); as-- > 0 ; )
for (unsigned st = 0; st < cnf.sets(); st++)
- if (dt[as][st].valid)
+ if (dt[as][st].valid) {
kick(as, st);
+ emit cache_update(as, st, false, false, 0, 0);
+ }
+ change_counter++;
update_statistics();
}