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/machineconfig.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/machineconfig.cpp')
-rw-r--r-- | qtmips_machine/machineconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/machineconfig.cpp b/qtmips_machine/machineconfig.cpp index 9cd6465..8a48ce1 100644 --- a/qtmips_machine/machineconfig.cpp +++ b/qtmips_machine/machineconfig.cpp @@ -54,7 +54,7 @@ using namespace machine; #define DFC_BLOCKS 1 #define DFC_ASSOC 1 #define DFC_REPLAC RP_RAND -#define DFC_WRITE WP_TROUGH +#define DFC_WRITE WP_TROUGH_NOALLOC ////////////////////////////////////////////////////////////////////////////// MachineConfigCache::MachineConfigCache() { @@ -106,7 +106,7 @@ void MachineConfigCache::preset(enum ConfigPresets p) { set_blocks(2); set_associativity(2); set_replacement_policy(RP_RAND); - set_write_policy(WP_TROUGH); + set_write_policy(WP_TROUGH_NOALLOC); break; case CP_SINGLE: case CP_PIPE_NO_HAZARD: |