diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-20 14:17:32 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-20 14:17:32 +0100 |
commit | adb9f147e358f687b37f5bf14c68f559c7c86a79 (patch) | |
tree | f6e62a99e0f005401871c138103acdfe008ce1a1 /qtmips_machine/tests/testcache.cpp | |
parent | b01f4f6c24ed6ff80f822d6ed546c188655bda27 (diff) | |
download | qtmips-adb9f147e358f687b37f5bf14c68f559c7c86a79.tar.gz qtmips-adb9f147e358f687b37f5bf14c68f559c7c86a79.tar.bz2 qtmips-adb9f147e358f687b37f5bf14c68f559c7c86a79.zip |
Distinguish between write-through cache with allocate and update only if hit.
Add into cache statistic number of backing/main memory accesses.
Correction of meaning and computation of the cache statistic.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/tests/testcache.cpp')
-rw-r--r-- | qtmips_machine/tests/testcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/tests/testcache.cpp b/qtmips_machine/tests/testcache.cpp index bbe1e62..92af45f 100644 --- a/qtmips_machine/tests/testcache.cpp +++ b/qtmips_machine/tests/testcache.cpp @@ -44,7 +44,7 @@ void MachineTests::cache_data() { QTest::addColumn<unsigned>("miss"); MachineConfigCache cache_c; - cache_c.set_write_policy(MachineConfigCache::WP_TROUGH); + cache_c.set_write_policy(MachineConfigCache::WP_TROUGH_ALLOC); cache_c.set_enabled(true); cache_c.set_sets(8); cache_c.set_blocks(1); |