From 2e657ea1ff3472d8a4f3706731e5533ba94f2d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 23 Jan 2018 13:57:20 +0100 Subject: 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. --- qtmips_gui/NewDialogCache.ui | 6 +++--- qtmips_gui/newdialog.cpp | 2 ++ 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 @@ - + Writeback policy: - + Random @@ -112,7 +112,7 @@ - + Write trough 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); -- cgit v1.2.3