aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/mainwindow.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-04-17 12:44:44 +0200
committerKarel Kočí <cynerd@email.cz>2018-04-17 12:44:44 +0200
commit95956a7457a1237385a314212c4e106bed88f05d (patch)
tree0ab000468c9e281c0a59fc5991252a87e115d154 /qtmips_gui/mainwindow.cpp
parent6c360d8e42053d9045bbe2fc78c23143f8a334b7 (diff)
downloadqtmips-95956a7457a1237385a314212c4e106bed88f05d.tar.gz
qtmips-95956a7457a1237385a314212c4e106bed88f05d.tar.bz2
qtmips-95956a7457a1237385a314212c4e106bed88f05d.zip
Initial implementation of cache view
It needs some more work to look nice but it already works.
Diffstat (limited to 'qtmips_gui/mainwindow.cpp')
-rw-r--r--qtmips_gui/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp
index d3434bc..4fb9cbf 100644
--- a/qtmips_gui/mainwindow.cpp
+++ b/qtmips_gui/mainwindow.cpp
@@ -118,8 +118,8 @@ void MainWindow::create_core(const machine::MachineConfig &config) {
registers->setup(machine);
program->setup(machine);
memory->setup(machine);
- cache_program->setup(machine->config().cache_program().enabled() ? machine->cache_program() : nullptr);
- cache_data->setup(machine->config().cache_data().enabled() ? machine->cache_data() : nullptr);
+ cache_program->setup(machine->cache_program());
+ cache_data->setup(machine->cache_data());
// Set status to ready
machine_status(machine::QtMipsMachine::ST_READY);
}