aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-23 13:57:20 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-23 13:57:20 +0100
commit2e657ea1ff3472d8a4f3706731e5533ba94f2d0d (patch)
tree9d490cd23e1da94e310f39edf8e558ec13e10dae
parent6fb946e01223e5a8492d755c6b0922e4c97569cf (diff)
downloadqtmips-2e657ea1ff3472d8a4f3706731e5533ba94f2d0d.tar.gz
qtmips-2e657ea1ff3472d8a4f3706731e5533ba94f2d0d.tar.bz2
qtmips-2e657ea1ff3472d8a4f3706731e5533ba94f2d0d.zip
Hide writeback policy in program cache
Program cache is read only so having write cache makes no sense. In reality in code we still configure and use it but user doesn't have to know that.
-rw-r--r--qtmips_gui/NewDialogCache.ui6
-rw-r--r--qtmips_gui/newdialog.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/qtmips_gui/NewDialogCache.ui b/qtmips_gui/NewDialogCache.ui
index 04f15f7..c995bac 100644
--- a/qtmips_gui/NewDialogCache.ui
+++ b/qtmips_gui/NewDialogCache.ui
@@ -81,14 +81,14 @@
</widget>
</item>
<item row="6" column="0">
- <widget class="QLabel" name="label_7">
+ <widget class="QLabel" name="label_writeback">
<property name="text">
<string>Writeback policy:</string>
</property>
</widget>
</item>
<item row="5" column="1">
- <widget class="QComboBox" name="comboBox">
+ <widget class="QComboBox" name="replacement_policy">
<item>
<property name="text">
<string>Random</string>
@@ -112,7 +112,7 @@
</widget>
</item>
<item row="6" column="1">
- <widget class="QComboBox" name="comboBox_2">
+ <widget class="QComboBox" name="writeback_policy">
<item>
<property name="text">
<string>Write trough</string>
diff --git a/qtmips_gui/newdialog.cpp b/qtmips_gui/newdialog.cpp
index 5b1c39e..b760626 100644
--- a/qtmips_gui/newdialog.cpp
+++ b/qtmips_gui/newdialog.cpp
@@ -12,6 +12,8 @@ NewDialog::NewDialog(QWidget *parent, QSettings *settings) : QDialog(parent) {
ui->setupUi(this);
ui_cache_p = new Ui::NewDialogCache();
ui_cache_p->setupUi(ui->tab_cache_program);
+ ui_cache_p->writeback_policy->hide();
+ ui_cache_p->label_writeback->hide();
ui_cache_d = new Ui::NewDialogCache();
ui_cache_d->setupUi(ui->tab_cache_data);