aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/cache.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-25 15:25:59 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-25 15:26:32 +0100
commit9713d030bb1696269c3348cac83e13306edd65cf (patch)
treef57970edbc9ef607c4209ebcae7fbf64214bb8a6 /qtmips_machine/cache.cpp
parent3774592f02121ce749c1d5ac4210bd6772475305 (diff)
downloadqtmips-9713d030bb1696269c3348cac83e13306edd65cf.tar.gz
qtmips-9713d030bb1696269c3348cac83e13306edd65cf.tar.bz2
qtmips-9713d030bb1696269c3348cac83e13306edd65cf.zip
Correct write through spelling. Reported by Richard Susta.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/cache.cpp')
-rw-r--r--qtmips_machine/cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/cache.cpp b/qtmips_machine/cache.cpp
index ec6a021..b3afbeb 100644
--- a/qtmips_machine/cache.cpp
+++ b/qtmips_machine/cache.cpp
@@ -311,7 +311,7 @@ bool Cache::access(std::uint32_t address, std::uint32_t *data, bool write, std::
// Need to find new block
if (indx >= cnf.associativity()) {
// if write through we do not need to alloecate cache line does not allocate
- if (write && cnf.write_policy() == MachineConfigCache::WP_TROUGH_NOALLOC) {
+ if (write && cnf.write_policy() == MachineConfigCache::WP_THROUGH_NOALLOC) {
miss_write++;
emit miss_update(miss());
update_statistics();