aboutsummaryrefslogtreecommitdiff
path: root/qtmips_cli
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_cli
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_cli')
-rw-r--r--qtmips_cli/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_cli/main.cpp b/qtmips_cli/main.cpp
index 1a742e3..e80670b 100644
--- a/qtmips_cli/main.cpp
+++ b/qtmips_cli/main.cpp
@@ -117,9 +117,9 @@ void configure_cache(MachineConfigCache &cacheconf, QStringList cachearg, QStrin
if (pieces.at(3).toLower() == "wb")
cacheconf.set_write_policy(MachineConfigCache::WP_BACK);
else if (pieces.at(3).toLower() == "wt" || pieces.at(3).toLower() == "wtna")
- cacheconf.set_write_policy(MachineConfigCache::WP_TROUGH_NOALLOC);
+ cacheconf.set_write_policy(MachineConfigCache::WP_THROUGH_NOALLOC);
else if (pieces.at(3).toLower() == "wta")
- cacheconf.set_write_policy(MachineConfigCache::WP_TROUGH_ALLOC);
+ cacheconf.set_write_policy(MachineConfigCache::WP_THROUGH_ALLOC);
else {
std::cerr << "Write policy for " << which.toLocal8Bit().data() << " cache is incorrect (correct wb/wt/wtna/wta)." << std::endl;
exit(1);