aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/cache.cpp
diff options
context:
space:
mode:
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();