From 72900108c92488e4d1d71330e922509212c51c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 11 Dec 2017 21:18:47 +0100 Subject: Another but same fix for cache Segfault happening had same cause as previous problem so fix is similar. --- qtmips_machine/machineconfig.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qtmips_machine/machineconfig.cpp') diff --git a/qtmips_machine/machineconfig.cpp b/qtmips_machine/machineconfig.cpp index 7538765..05624cc 100644 --- a/qtmips_machine/machineconfig.cpp +++ b/qtmips_machine/machineconfig.cpp @@ -3,11 +3,14 @@ MachineConfig::MachineConfig() { pipeline = false; jumppred = false; + cache_type = CCT_NONE; + elf_path = QString(""); } MachineConfig::MachineConfig(MachineConfig *cc) { pipeline = cc->pipelined(); jumppred = cc->jump_prediction(); + cache_type = cc->cache(); elf_path = cc->elf(); } -- cgit v1.2.3