diff options
Diffstat (limited to 'qtmips_machine')
-rw-r--r-- | qtmips_machine/machineconfig.cpp | 3 | ||||
-rw-r--r-- | qtmips_machine/qtmipsmachine.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
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(); } diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index 3d5ce98..7b44a7b 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -21,6 +21,8 @@ QtMipsMachine::QtMipsMachine(const MachineConfig &cc) { coremem = mem; //coremem = cch = new CacheAssociative(); break; + default: + throw QTMIPS_EXCEPTION(Sanity, "Trying to configure unknown cache type", ""); } // TODO pipelined |